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.
Definition at line 26 of file Error.hh.
◆ Error() [1/2]
| marley::Error::Error |
( |
const char * | message | ) |
|
|
inlineexplicit |
- Parameters
-
| message | An error message to display if the exception is not caught |
Definition at line 32 of file Error.hh.
◆ Error() [2/2]
| marley::Error::Error |
( |
const std::string & | message | ) |
|
|
inlineexplicit |
- Parameters
-
| message | An error message to display if the exception is not caught |
Definition at line 36 of file Error.hh.
◆ ~Error()
| virtual marley::Error::~Error |
( |
| ) |
|
|
inlinevirtual |
◆ what()
| virtual const char * marley::Error::what |
( |
| ) |
const |
|
inlinevirtualnoexcept |
Method called by the C++ standard library to display the error message.
Definition at line 41 of file Error.hh.
41{ return msg_.c_str(); }
◆ msg_
| std::string marley::Error::msg_ |
|
protected |
The documentation for this class was generated from the following file:
- /home/sjg/Desktop/marley/include/marley/Error.hh