![]() |
Kea 3.0.0
|
#include <message_exception.h>
Public Member Functions | |
| 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. | |
| Public Member Functions inherited from isc::Exception | |
| 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.
|
inline |
Constructor.
| 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.
References isc::Exception::Exception(), id(), and isc::Exception::what().
|
inline |
Constructor.
| 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.
References isc::Exception::Exception(), id(), and isc::Exception::what().
|
inline |
Constructor.
| 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.
References isc::Exception::Exception(), id(), and isc::Exception::what().
|
inline |
Destructor.
Definition at line 87 of file message_exception.h.
|
inline |
Return Arguments.
Definition at line 99 of file message_exception.h.
Referenced by main(), and isc::log::LoggerManager::readLocalMessageFile().
|
inline |
Return Message ID.
Definition at line 92 of file message_exception.h.
Referenced by MessageException(), MessageException(), MessageException(), main(), and isc::log::LoggerManager::readLocalMessageFile().