|
ALL 0.9.3
A Loadbalacing Library
|
Customized exceptions for ALL, modified for each specific exception type. More...
#include <ALL_CustomExceptions.hpp>
Public Member Functions | |
| CustomException (const char *file_="", const char *f_="", int l_=-1, const char *i_="", const char *loc_desc_="ALLCustomException", const ErrorID error_id_=ErrorID::Generic) | |
| int | get_error_id () |
| const char * | get_func () const |
| const char * | get_info () |
| int | get_line () const |
| virtual const char * | what () const throw () |
Protected Types | |
| enum struct | ErrorID : int { Generic = 1 , PointDimensionMissmatch , InvalidCommType , InvalidArgument , OutOfBounds , InternalError , FilesystemError } |
Protected Attributes | |
| ErrorID | error_id |
| error identificator retrieved by Fortran | |
| std::string | error_msg |
| error message | |
| const char * | file |
| file the exception occured in | |
| const char * | func |
| function the exception occured in | |
| const char * | info |
| information on the exception | |
| int | line |
| line the exception occured in | |
| const char * | loc_desc |
| name of the exception | |
Customized exceptions for ALL, modified for each specific exception type.
Definition at line 41 of file ALL_CustomExceptions.hpp.
|
strongprotected |
error identificators for Fortran error retrieval, remember to update the Fortran module as well!
| Enumerator | |
|---|---|
| Generic | |
| PointDimensionMissmatch | |
| InvalidCommType | |
| InvalidArgument | |
| OutOfBounds | |
| InternalError | |
| FilesystemError | |
Definition at line 57 of file ALL_CustomExceptions.hpp.
|
inline |
constructor for an exception used in ALL
| file | the source file from where the exception is thrown |
| f_ | the function from where the exception is thrown |
| l_ | the line from where the exception is thrown |
| i_ | additional information about the error |
| loc_desc | internal description of the exception type |
Definition at line 76 of file ALL_CustomExceptions.hpp.
|
inline |
retrieve error id for Fortran interface
Definition at line 107 of file ALL_CustomExceptions.hpp.
|
inline |
method to get the function name from where the exception was thrown
Definition at line 90 of file ALL_CustomExceptions.hpp.
|
inline |
method to get the additional information about the error leading to the exception
Definition at line 99 of file ALL_CustomExceptions.hpp.
|
inline |
method to get the line from where the exception was thrown
Definition at line 94 of file ALL_CustomExceptions.hpp.
|
inlinevirtual | ||||||||||||
overloaded method from the base Exception class to return an error message
Definition at line 103 of file ALL_CustomExceptions.hpp.
|
protected |
error identificator retrieved by Fortran
Definition at line 67 of file ALL_CustomExceptions.hpp.
|
protected |
error message
Definition at line 54 of file ALL_CustomExceptions.hpp.
|
protected |
file the exception occured in
Definition at line 44 of file ALL_CustomExceptions.hpp.
|
protected |
function the exception occured in
Definition at line 46 of file ALL_CustomExceptions.hpp.
|
protected |
information on the exception
Definition at line 50 of file ALL_CustomExceptions.hpp.
|
protected |
line the exception occured in
Definition at line 48 of file ALL_CustomExceptions.hpp.
|
protected |
name of the exception
Definition at line 52 of file ALL_CustomExceptions.hpp.