DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
DotNetDupe::System::Exception Class Reference

Represents errors that occur during application execution. More...

#include <Exception.h>

Inheritance diagram for DotNetDupe::System::Exception:

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.
Exceptionoperator= (const Exception &other)
 Copy assignment operator.
const char * What () const
 Gets a message that describes the current exception.

Detailed Description

Represents errors that occur during application execution.

Note
Conforms to ECMA-335 Partition IV Section 5.23 (System.Exception). Serves as the ultimate base class for all exceptions throughout DotNetDupe.

Definition at line 19 of file Exception.h.

Constructor & Destructor Documentation

◆ Exception() [1/4]

◆ Exception() [2/4]

DotNetDupe::System::Exception::Exception ( const String & sMessage)

Initializes a new instance of the Exception class with a specified error message.

Parameters
sMessageThe message that describes the error.

Initialize exception with caller-supplied diagnostic message.

Definition at line 19 of file Exception.cpp.

◆ Exception() [3/4]

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.

Parameters
sMessageThe error message that explains the reason for the exception.
innerExceptionThe exception that is the cause of the current exception.

Chain inner exception cause.

Definition at line 23 of file Exception.cpp.

References Exception().

◆ Exception() [4/4]

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().

◆ ~Exception()

DotNetDupe::System::Exception::~Exception ( )
virtual

Virtual destructor.

Free inner exception chain recursively.

Definition at line 43 of file Exception.cpp.

Member Function Documentation

◆ operator=()

Exception & DotNetDupe::System::Exception::operator= ( const Exception & other)

Copy assignment operator.

Guard: Check self-assignment.

Definition at line 33 of file Exception.cpp.

References Exception().

◆ What()


The documentation for this class was generated from the following files: