Message Exception.
More...
#include <message_exception.h>
|
| MessageException (const char *file, size_t line, const char *what, MessageID id, const std::string &arg1, const std::string &arg2, int lineno) |
| Constructor.
|
|
| MessageException (const char *file, size_t line, const char *what, MessageID id, const std::string &arg1, int lineno) |
| Constructor.
|
|
| MessageException (const char *file, size_t line, const char *what, MessageID id, int lineno) |
| Constructor.
|
|
| ~MessageException () |
| Destructor.
|
|
std::vector< std::string > | arguments () const |
| Return Arguments.
|
|
MessageID | id () const |
| Return Message ID.
|
|
virtual const char * | what () const throw () |
| Returns a C-style character string of the cause of the exception.
|
|
virtual const char * | what (bool verbose) const throw () |
| Returns a C-style character string of the cause of exception.
|
|
const std::string & | getMessage () const |
| Gets a string describing the cause of the exception.
|
|
const char * | getFile () const |
| Gets the file name where the exception was thrown.
|
|
size_t | getLine () const |
| Gets the line number of the file where the exception was thrown.
|
|
| Exception (const char *file, size_t line, const char *what) |
| Constructor for a given type for exceptions with file name and file line number.
|
|
| Exception (const char *file, size_t line, const std::string &what) |
| Constructor for a given type for exceptions with file name and file line number.
|
|
virtual | ~Exception () throw () |
| The destructor.
|
|
Message Exception.
Used in the message reader, this simple exception class allows a message code and its arguments to be encapsulated in an exception and thrown up the stack.
Definition at line 28 of file message_exception.h.
◆ MessageException() [1/3]
isc::log::MessageException::MessageException |
( |
const char * | file, |
|
|
size_t | line, |
|
|
const char * | what, |
|
|
MessageID | id, |
|
|
int | lineno ) |
|
inline |
Constructor.
- Parameters
-
file | Filename where the exception occurred. |
line | Line where exception occurred. |
what | Text description of the problem. |
id | Message identification. |
lineno | Line number on which error occurred (if > 0). |
Definition at line 38 of file message_exception.h.
◆ MessageException() [2/3]
isc::log::MessageException::MessageException |
( |
const char * | file, |
|
|
size_t | line, |
|
|
const char * | what, |
|
|
MessageID | id, |
|
|
const std::string & | arg1, |
|
|
int | lineno ) |
|
inline |
Constructor.
- Parameters
-
file | Filename where the exception occurred. |
line | Line where exception occurred. |
what | Text description of the problem. |
id | Message identification. |
arg1 | First message argument. |
lineno | Line number on which error occurred (if > 0). |
Definition at line 55 of file message_exception.h.
◆ MessageException() [3/3]
isc::log::MessageException::MessageException |
( |
const char * | file, |
|
|
size_t | line, |
|
|
const char * | what, |
|
|
MessageID | id, |
|
|
const std::string & | arg1, |
|
|
const std::string & | arg2, |
|
|
int | lineno ) |
|
inline |
Constructor.
- Parameters
-
file | Filename where the exception occurred. |
line | Line where exception occurred. |
what | Text description of the problem. |
id | Message identification. |
arg1 | First message argument. |
arg2 | Second message argument. |
lineno | Line number on which error occurred (if > 0). |
Definition at line 74 of file message_exception.h.
◆ ~MessageException()
isc::log::MessageException::~MessageException |
( |
| ) |
|
|
inline |
◆ arguments()
std::vector< std::string > isc::log::MessageException::arguments |
( |
| ) |
const |
|
inline |
◆ id()
MessageID isc::log::MessageException::id |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: