Custom Exceptions

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

CustomException

struct ALL::CustomException : public std::exception

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

Public 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
const char *what() const

FilesystemErrorException

struct ALL::FilesystemErrorException : public ALL::CustomException

Public Functions

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 ALL::InternalErrorException : public ALL::CustomException

Public Functions

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 ALL::InvalidArgumentException : public ALL::CustomException

Public Functions

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 ALL::InvalidCommTypeException : public ALL::CustomException

Public Functions

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 ALL::OutOfBoundsException : public ALL::CustomException

Public Functions

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 ALL::PointDimensionMissmatchException : public ALL::CustomException

Public Functions

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)