|
DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
|
Represents errors that occur during application execution. More...
#include <Exception.h>
Public Member Functions | |
| Exception () | |
| Initializes a new instance of the Exception class with a default system-supplied message. | |
| Exception (const Exception &other) | |
| Copy constructor. Deep copies inner exception if present. | |
| Exception (const String &sMessage) | |
| Initializes a new instance of the Exception class with a specified error message. | |
| Exception (const String &sMessage, const Exception &innerException) | |
| Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception. | |
| virtual | ~Exception () |
| Virtual destructor. | |
| Exception & | operator= (const Exception &other) |
| Copy assignment operator. | |
| const char * | What () const |
| Gets a message that describes the current exception. | |
Represents errors that occur during application execution.
Definition at line 19 of file Exception.h.
| DotNetDupe::System::Exception::Exception | ( | ) |
Initializes a new instance of the Exception class with a default system-supplied message.
Initialize exception with default type message and null inner exception.
Definition at line 15 of file Exception.cpp.
Referenced by DotNetDupe::System::AggregateException::AggregateException(), Exception(), Exception(), DotNetDupe::System::Net::Http::HttpRequestException::HttpRequestException(), DotNetDupe::System::IO::IOException::IOException(), DotNetDupe::System::Text::Json::JsonException::JsonException(), DotNetDupe::System::Security::SecurityException::SecurityException(), DotNetDupe::System::SystemException::SystemException(), DotNetDupe::System::SystemException::SystemException(), DotNetDupe::System::SystemException::SystemException(), DotNetDupe::System::Net::WebSockets::WebSocketException::WebSocketException(), DotNetDupe::System::Net::WebSockets::WebSocketException::WebSocketException(), and operator=().
| DotNetDupe::System::Exception::Exception | ( | const String & | sMessage | ) |
Initializes a new instance of the Exception class with a specified error message.
| sMessage | The message that describes the error. |
Initialize exception with caller-supplied diagnostic message.
Definition at line 19 of file Exception.cpp.
| DotNetDupe::System::Exception::Exception | ( | const String & | sMessage, |
| const Exception & | innerException ) |
Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.
| sMessage | The error message that explains the reason for the exception. |
| innerException | The exception that is the cause of the current exception. |
Chain inner exception cause.
Definition at line 23 of file Exception.cpp.
References Exception().
| DotNetDupe::System::Exception::Exception | ( | const Exception & | other | ) |
Copy constructor. Deep copies inner exception if present.
Deep-copy inner exception chain.
Definition at line 28 of file Exception.cpp.
References Exception().
|
virtual |
Virtual destructor.
Free inner exception chain recursively.
Definition at line 43 of file Exception.cpp.
Copy assignment operator.
Guard: Check self-assignment.
Definition at line 33 of file Exception.cpp.
References Exception().
|
inline |
Gets a message that describes the current exception.
Definition at line 46 of file Exception.h.
Referenced by DotNetDupe::System::Net::WebSockets::WebSocketException::WebSocketException(), DotNetDupe::WebAppCore::Builder::DispatchResponse(), DotNetDupe::WebAppCore::Controllers::ControllerRouteBuilder< TController >::MapPost(), DotNetDupe::WebAppCore::Controllers::ControllerRouteBuilder< TController >::MapPost(), DotNetDupe::WebAppCore::Controllers::ControllerRouteBuilder< TController >::MapPost(), DotNetDupe::WebAppCore::Controllers::ControllerRouteBuilder< TController >::MapPost(), DotNetDupe::WebAppCore::Controllers::ControllerRouteBuilder< TController >::MapPut(), DotNetDupe::WebAppCore::Controllers::ControllerRouteBuilder< TController >::MapPut(), DotNetDupe::WebAppCore::Controllers::ControllerRouteBuilder< TController >::MapPut(), and DotNetDupe::WebAppCore::Controllers::ControllerRouteBuilder< TController >::MapPut().