Base class for all exceptions thrown by MARLEY functions.
More...
#include <Error.hh>
|
| Error (const char *message) |
|
| Error (const std::string &message) |
|
virtual const char * | what () const noexcept |
| Method called by the C++ standard library to display the error message.
|
|
Base class for all exceptions thrown by MARLEY functions.
A distinct exception class allows the user to differentiate between exceptions thrown by MARLEY and those thrown by other libraries. The marley::Error class also forwards its error message to the marley::Logger class, which prints them to enabled logging streams as appropriate.
- Todo:
- Create an MARLEY exception class hierarchy as needed.
◆ Error() [1/2]
marley::Error::Error |
( |
const char * |
message | ) |
|
|
inlineexplicit |
- Parameters
-
message | An error message to display if the exception is not caught |
◆ Error() [2/2]
marley::Error::Error |
( |
const std::string & |
message | ) |
|
|
inlineexplicit |
- Parameters
-
message | An error message to display if the exception is not caught |
The documentation for this class was generated from the following files:
- /Users/gardiner/marley/include/marley/Error.hh
- /Users/gardiner/marley/src/Error.cc