Autopysta
Loading...
Searching...
No Matches
Exception Class Reference

Exception class for handling error's. More...

#include <Exception.h>

Inheritance diagram for Exception:

Public Member Functions

 Exception (int c, const char *m)
 Exception constructor.
 
int code ()
 Returns the error code.
 
const char * msg ()
 Returns the error message.
 
virtual const char * what () const throw ()
 Returns the error message with an exception specification.
 

Public Attributes

int _code
 Error code.
 
char _msg [256]
 Error message.
 

Detailed Description

Exception class for handling error's.

Used internally in source files. Can be catched in python by using

import autpysta as ap
try:
[...]
except ap.Exception, e:
print (e.msg)

Constructor & Destructor Documentation

◆ Exception()

Exception::Exception ( int c,
const char * m )

Exception constructor.

Parameters
cError code.
mError message.

The documentation for this class was generated from the following file: