31#ifndef ALL_CUSTOM_EXCEPTIONS_INC
32#define ALL_CUSTOM_EXCEPTIONS_INC
78 const char *loc_desc_ =
"ALLCustomException",
83 <<
"Function: " <<
func <<
"\n"
84 <<
"File: " <<
file <<
"\n"
85 <<
"Line: " <<
line <<
"\n";
120 const char *file_,
const char *f_,
int l_,
121 const char *i_ =
"Dimension missmatch in Point objects.",
122 const char *loc_desc_ =
"ALLPointDimMissmatchException",
137 const char *file_,
const char *f_,
int l_,
138 const char *i_ =
"Type of MPI communicator not valid.",
139 const char *loc_desc_ =
"ALLCommTypeInvalidException",
154 const char *file_,
const char *f_ =
"",
int l_ = -1,
155 const char *i_ =
"Invalid argument given.",
156 const char *loc_desc_ =
"ALLInvalidArgumentException",
171 const char *file_,
const char *f_ =
"",
int l_ = -1,
172 const char *i_ =
"Access to array out of bounds.",
173 const char *loc_desc_ =
"ALLOutOfBoundsErrorException",
188 const char *file_,
const char *f_ =
"",
int l_ = -1,
189 const char *i_ =
"Internal error occured, see description.",
190 const char *loc_desc_ =
"ALLInternalErrorException",
205 const char *file_,
const char *f_ =
"",
int l_ = -1,
206 const char *i_ =
"Filesystem error occured, see description.",
207 const char *loc_desc_ =
"ALLFilesystemErrorException",
ErrorID error_id
error identificator retrieved by Fortran
const char * loc_desc
name of the exception
@ PointDimensionMissmatch
const char * info
information on the exception
CustomException(const char *file_="", const char *f_="", int l_=-1, const char *i_="", const char *loc_desc_="ALLCustomException", const ErrorID error_id_=ErrorID::Generic)
virtual const char * what() const
std::string error_msg
error message
const char * file
file the exception occured in
const char * func
function the exception occured in
const char * get_func() const
int line
line the exception occured in
FilesystemErrorException(const char *file_, const char *f_="", int l_=-1, const char *i_="Filesystem error occured, see description.", const char *loc_desc_="ALLFilesystemErrorException", const ErrorID error_id_=ErrorID::FilesystemError)
InternalErrorException(const char *file_, const char *f_="", int l_=-1, const char *i_="Internal error occured, see description.", const char *loc_desc_="ALLInternalErrorException", const ErrorID error_id_=ErrorID::InternalError)
InvalidArgumentException(const char *file_, const char *f_="", int l_=-1, const char *i_="Invalid argument given.", const char *loc_desc_="ALLInvalidArgumentException", const ErrorID error_id_=ErrorID::InvalidArgument)
InvalidCommTypeException(const char *file_, const char *f_, int l_, const char *i_="Type of MPI communicator not valid.", const char *loc_desc_="ALLCommTypeInvalidException", const ErrorID error_id_=ErrorID::InvalidCommType)
OutOfBoundsException(const char *file_, const char *f_="", int l_=-1, const char *i_="Access to array out of bounds.", const char *loc_desc_="ALLOutOfBoundsErrorException", const ErrorID error_id_=ErrorID::OutOfBounds)
PointDimensionMissmatchException(const char *file_, const char *f_, int l_, const char *i_="Dimension missmatch in Point objects.", const char *loc_desc_="ALLPointDimMissmatchException", const ErrorID error_id_=ErrorID::PointDimensionMissmatch)