Exception
Defines
-
MAKE_EXCEPTION(class_name)
Create a new type of exception.
Example:
namespace test { MAKE_EXCEPTION(base) void throw_base() { throw test::base("dedicated error"); } }
- Parameters:
class_name – the name of the class
-
class NaelException : public std::exception
- #include <exception.hh>
Pure virtual class to create dedicated exceptions.
Subclassed by bo::consistency, fatal_error, opt::consistency
Public Functions
-
inline explicit NaelException(const std::string &message)
-
inline const char *what() const noexcept override
-
virtual ~NaelException() override = 0
Private Members
-
std::string _message
-
inline explicit NaelException(const std::string &message)
-
class fatal_error : public NaelException
- #include <exception.hh>
Dedicated exception for irrecoverable error.
-
namespace io
-
class access_error : public NaelException
Exception for file access error.
-
class access_error : public NaelException
-
namespace bo
-
class consistency : public NaelException
- #include <exception.hh>
Dedicated exception for consistency in input data.
-
class consistency : public NaelException
-
namespace opt
-
class consistency : public NaelException
- #include <exception.hh>
Dedicated exception for consistency during optimization.
-
class consistency : public NaelException
- These exceptions are also provided :
fatal_error : exception for irrecoverable error
bo::consistency : exception for consistency issue in Business Object Model
io::access_error : exception for file access error