#include <Exception.h>
This is the base class for all exceptions defined in the Poco class library.
Definition at line 28 of file Exception.h.
◆ Exception() [1/5]
Poco::Exception::Exception |
( |
const std::string & | msg, |
|
|
int | code = 0 ) |
◆ Exception() [2/5]
Poco::Exception::Exception |
( |
const std::string & | msg, |
|
|
const std::string & | arg, |
|
|
int | code = 0 ) |
◆ Exception() [3/5]
Poco::Exception::Exception |
( |
const std::string & | msg, |
|
|
const Exception & | nested, |
|
|
int | code = 0 ) |
◆ Exception() [4/5]
Poco::Exception::Exception |
( |
const Exception & | exc | ) |
|
Creates an exception and stores a clone of the nested exception.
◆ ~Exception()
Poco::Exception::~Exception |
( |
| ) |
|
|
noexcept |
◆ Exception() [5/5]
Poco::Exception::Exception |
( |
int | code = 0 | ) |
|
|
protected |
(Re)Throws the exception.
This is useful for temporarily storing a copy of an exception (see clone()), then throwing it again.
◆ className()
virtual const char * Poco::Exception::className |
( |
| ) |
const |
|
virtualnoexcept |
Returns a static string describing the exception.
◆ clone()
virtual Exception * Poco::Exception::clone |
( |
| ) |
const |
|
virtual |
Returns a string consisting of the message name and the message text.
◆ code()
int Poco::Exception::code |
( |
| ) |
const |
|
inline |
◆ displayText()
std::string Poco::Exception::displayText |
( |
| ) |
const |
Returns the exception code if defined.
◆ extendedMessage()
void Poco::Exception::extendedMessage |
( |
const std::string & | arg | ) |
|
|
protected |
Sets the message for the exception.
◆ message() [1/2]
const std::string & Poco::Exception::message |
( |
| ) |
const |
|
inline |
Returns a pointer to the nested exception, or null if no nested exception exists.
Definition at line 116 of file Exception.h.
◆ message() [2/2]
void Poco::Exception::message |
( |
const std::string & | msg | ) |
|
|
inlineprotected |
◆ name()
virtual const char * Poco::Exception::name |
( |
| ) |
const |
|
virtualnoexcept |
◆ nested()
const Exception * Poco::Exception::nested |
( |
| ) |
const |
|
inline |
Returns a static string describing the exception.
Same as name(), but for compatibility with std::exception.
Definition at line 110 of file Exception.h.
◆ operator=()
Destroys the exception and deletes the nested exception.
◆ rethrow()
virtual void Poco::Exception::rethrow |
( |
| ) |
const |
|
virtual |
Creates an exact copy of the exception.
The copy can later be thrown again by invoking rethrow() on it.
◆ what()
virtual const char * Poco::Exception::what |
( |
| ) |
const |
|
virtualnoexcept |
Returns the name of the exception class.
◆ _code
int Poco::Exception::_code |
|
private |
◆ _msg
std::string Poco::Exception::_msg |
|
private |
Sets the extended message for the exception.
Definition at line 101 of file Exception.h.
◆ _pNested
The documentation for this class was generated from the following file:
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASE/AseApi-main/include/Poco/Poco/Exception.h