Custom Exceptions

The library may throw one of these exceptions, which are all based on ALL::CustomException.

CustomException

struct CustomException : public std::exception

Subclassed by ALL::FilesystemErrorException, ALL::InternalErrorException, ALL::InvalidArgumentException, ALL::InvalidCommTypeException, ALL::OutOfBoundsException, ALL::PointDimensionMissmatchException

Public Functions

inline CustomException(const char *file_ = "", const char *f_ = "", int l_ = -1, const char *i_ = "", const char *loc_desc_ = "ALLCustomException", const ErrorID error_id_ = ErrorID::Generic)
inline int get_error_id()
inline const char *get_func() const
inline const char *get_info()
inline int get_line() const
inline virtual const char *what() const

FilesystemErrorException

struct FilesystemErrorException : public ALL::CustomException

Public Functions

inline 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

struct InternalErrorException : public ALL::CustomException

Public Functions

inline 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

struct InvalidArgumentException : public ALL::CustomException

Public Functions

inline 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

struct InvalidCommTypeException : public ALL::CustomException

Public Functions

inline 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

struct OutOfBoundsException : public ALL::CustomException

Public Functions

inline 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

struct PointDimensionMissmatchException : public ALL::CustomException

Public Functions

inline 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)