CodePorting.Translator.Cs2Cpp.Framework
System::Details_BadImageFormatException Class Reference

The exception that is thrown when the file image of a dynamic link library (DLL) or an executable program is invalid. Never create instances of this class manually. Use the BadImageFormatException class instead. Never wrap the BadImageFormatException class instances into System::SmartPtr. More...

#include <bad_image_fromat_exception.h>

Inherits System::Details_ExceptionWithFilename< Details_SystemException >.

Protected Member Functions

 Details_BadImageFormatException ()
 Initializes a new instance of the BadImageFormatException class. More...
 
 Details_BadImageFormatException (const String &message)
 Initializes a new instance of the BadImageFormatException class with a specified error message. More...
 
 Details_BadImageFormatException (const String &message, const Exception &innerException)
 Initializes a new instance of the BadImageFormatException class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
 Details_BadImageFormatException (const String &message, const String &fileName)
 Initializes a new instance of the BadImageFormatException class with a specified error message and file name. More...
 
 Details_BadImageFormatException (const String &message, const String &fileName, const Exception &innerException)
 Initializes a new instance of the BadImageFormatException class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
void DoThrow (const System::ExceptionPtr &self) const override
 
- Protected Member Functions inherited from System::Details_ExceptionWithFilename< Details_SystemException >
 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
 

Additional Inherited Members

- Public Member Functions inherited from System::Details_ExceptionWithFilename< Details_SystemException >
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
 

Detailed Description

The exception that is thrown when the file image of a dynamic link library (DLL) or an executable program is invalid. Never create instances of this class manually. Use the BadImageFormatException class instead. Never wrap the BadImageFormatException class instances into System::SmartPtr.

Constructor & Destructor Documentation

◆ Details_BadImageFormatException() [1/5]

System::Details_BadImageFormatException::Details_BadImageFormatException ( )
protected

Initializes a new instance of the BadImageFormatException class.

◆ Details_BadImageFormatException() [2/5]

System::Details_BadImageFormatException::Details_BadImageFormatException ( const String message)
protected

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

Parameters
messageThe message that describes the error.

◆ Details_BadImageFormatException() [3/5]

System::Details_BadImageFormatException::Details_BadImageFormatException ( const String message,
const Exception innerException 
)
protected

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

Parameters
messageThe error message that explains the reason for the exception.
innerExceptionThe exception that is the cause of the current exception. If the inner parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.

◆ Details_BadImageFormatException() [4/5]

System::Details_BadImageFormatException::Details_BadImageFormatException ( const String message,
const String fileName 
)
protected

Initializes a new instance of the BadImageFormatException class with a specified error message and file name.

Parameters
messageA message that describes the error.
fileNameThe full name of the file with the invalid image.

◆ Details_BadImageFormatException() [5/5]

System::Details_BadImageFormatException::Details_BadImageFormatException ( const String message,
const String fileName,
const Exception innerException 
)
protected

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

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. If the inner parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Member Function Documentation

◆ DoThrow()

void System::Details_BadImageFormatException::DoThrow ( const System::ExceptionPtr self) const
overrideprotected
See also
System::Exception::DoThrow