Asposecpplib
System::Details_ExceptionWithFilename< T, typename > Class Template Reference

The template class for an exception with a file name. More...

Inherits T.

Public Member Functions

virtual String get_FileName () const
 Gets the name of the file that causes this exception. More...
 
virtual String get_Message () const override
 
virtual String ToString () const override
 

Protected Member Functions

 Details_ExceptionWithFilename ()
 Initializes a new instance with an empty file name. More...
 
 Details_ExceptionWithFilename (const String &message)
 Initializes a new instance with a specified error message and an empty file name. More...
 
 Details_ExceptionWithFilename (const String &message, const Exception &innerException)
 Initializes a new instance with a specified error message, a reference to the inner exception that is the cause of this exception, and an empty file name. More...
 
 Details_ExceptionWithFilename (const String &message, const String &fileName)
 Initializes a new instance with a specified error message and a specified filename. More...
 
 Details_ExceptionWithFilename (const String &message, const String &fileName, const Exception &innerException)
 Initializes a new instance with a specified error message, a reference to the inner exception that is the cause of this exception, and a specified file name. More...
 
virtual String ExtraDescription () const override
 

Detailed Description

template<typename T, typename = std::enable_if<std::is_base_of<Exception, T>::value>>
class System::Details_ExceptionWithFilename< T, typename >

The template class for an exception with a file name.

Template Parameters
TAn exception base class.

Constructor & Destructor Documentation

◆ Details_ExceptionWithFilename() [1/5]

template<typename T , typename = std::enable_if<std::is_base_of<Exception, T>::value>>
System::Details_ExceptionWithFilename< T, typename >::Details_ExceptionWithFilename ( )
inlineprotected

Initializes a new instance with an empty file name.

◆ Details_ExceptionWithFilename() [2/5]

template<typename T , typename = std::enable_if<std::is_base_of<Exception, T>::value>>
System::Details_ExceptionWithFilename< T, typename >::Details_ExceptionWithFilename ( const String message)
inlineprotected

Initializes a new instance with a specified error message and an empty file name.

Parameters
messageThe error message that explains the reason for the exception.

◆ Details_ExceptionWithFilename() [3/5]

template<typename T , typename = std::enable_if<std::is_base_of<Exception, T>::value>>
System::Details_ExceptionWithFilename< T, typename >::Details_ExceptionWithFilename ( const String message,
const Exception innerException 
)
inlineprotected

Initializes a new instance with a specified error message, a reference to the inner exception that is the cause of this exception, and an empty file name.

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

◆ Details_ExceptionWithFilename() [4/5]

template<typename T , typename = std::enable_if<std::is_base_of<Exception, T>::value>>
System::Details_ExceptionWithFilename< T, typename >::Details_ExceptionWithFilename ( const String message,
const String fileName 
)
inlineprotected

Initializes a new instance with a specified error message and a specified filename.

Parameters
messageThe error message that explains the reason for the exception.
fileNameThe full name of the file with the invalid image.

◆ Details_ExceptionWithFilename() [5/5]

template<typename T , typename = std::enable_if<std::is_base_of<Exception, T>::value>>
System::Details_ExceptionWithFilename< T, typename >::Details_ExceptionWithFilename ( const String message,
const String fileName,
const Exception innerException 
)
inlineprotected

Initializes a new instance with a specified error message, a reference to the inner exception that is the cause of this exception, and a specified file name.

Parameters
messageThe error message that explains the reason for the exception.
fileNameThe full name of the file with the invalid image.
innerExceptionThe exception that is the cause of the current exception.

Member Function Documentation

◆ ExtraDescription()

template<typename T , typename = std::enable_if<std::is_base_of<Exception, T>::value>>
virtual String System::Details_ExceptionWithFilename< T, typename >::ExtraDescription ( ) const
inlineoverrideprotectedvirtual
See also
System::Exception::ExtraDescription

◆ get_FileName()

template<typename T , typename = std::enable_if<std::is_base_of<Exception, T>::value>>
virtual String System::Details_ExceptionWithFilename< T, typename >::get_FileName ( ) const
inlinevirtual

Gets the name of the file that causes this exception.

◆ get_Message()

template<typename T , typename = std::enable_if<std::is_base_of<Exception, T>::value>>
virtual String System::Details_ExceptionWithFilename< T, typename >::get_Message ( ) const
inlineoverridevirtual
See also
System::Exception::get_Message

◆ ToString()

template<typename T , typename = std::enable_if<std::is_base_of<Exception, T>::value>>
virtual String System::Details_ExceptionWithFilename< T, typename >::ToString ( ) const
inlineoverridevirtual