The exception that is thrown when an attempt to access a file that does not exist on disk fails. Never create instances of this class manually. Use the FileNotFoundException class instead. Never wrap the FileNotFoundException class instances into System::SmartPtr.
More...
#include <file_not_found_exception.h>
Inherits System::Details_ExceptionWithFilename< Details_IOException >.
|
| Details_FileNotFoundException () |
| Initializes a new instance of the FileNotFoundException class with its message string set to a system-supplied message. More...
|
|
| Details_FileNotFoundException (const String &message) |
| Initializes a new instance of the FileNotFoundException class with a specified error message. More...
|
|
| Details_FileNotFoundException (const String &message, const System::Exception &innerException) |
| Initializes a new instance of the FileNotFoundException class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
|
|
| Details_FileNotFoundException (const String &message, const String &fileName) |
| Initializes a new instance of the FileNotFoundException class with a specified error message, and the file name that cannot be found. More...
|
|
| Details_FileNotFoundException (const String &message, const String &fileName, const System::Exception &innerException) |
| Initializes a new instance of the FileNotFoundException class with a specified error message, the file name that cannot be found, and a reference to the inner exception that is the cause of this exception. More...
|
|
void | DoThrow (const System::ExceptionPtr &self) const override |
|
| 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 |
|
The exception that is thrown when an attempt to access a file that does not exist on disk fails. Never create instances of this class manually. Use the FileNotFoundException class instead. Never wrap the FileNotFoundException class instances into System::SmartPtr.
◆ Details_FileNotFoundException() [1/5]
System::IO::Details_FileNotFoundException::Details_FileNotFoundException |
( |
| ) |
|
|
protected |
Initializes a new instance of the FileNotFoundException class with its message string set to a system-supplied message.
◆ Details_FileNotFoundException() [2/5]
System::IO::Details_FileNotFoundException::Details_FileNotFoundException |
( |
const String & |
message | ) |
|
|
protected |
Initializes a new instance of the FileNotFoundException class with a specified error message.
- Parameters
-
message | A description of the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. |
◆ Details_FileNotFoundException() [3/5]
System::IO::Details_FileNotFoundException::Details_FileNotFoundException |
( |
const String & |
message, |
|
|
const System::Exception & |
innerException |
|
) |
| |
|
protected |
Initializes a new instance of the FileNotFoundException class with a specified error message and a reference to the inner exception that is the cause of this exception.
- Parameters
-
message | A description of the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. |
innerException | The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception. |
◆ Details_FileNotFoundException() [4/5]
System::IO::Details_FileNotFoundException::Details_FileNotFoundException |
( |
const String & |
message, |
|
|
const String & |
fileName |
|
) |
| |
|
protected |
Initializes a new instance of the FileNotFoundException class with a specified error message, and the file name that cannot be found.
- Parameters
-
message | A description of the error, or null to use a system-supplied message with the given fileName. The content of message should be understood by humans. The caller of this constructor must ensure that this string has been localized for the current system culture. |
fileName | The full name of the file with the invalid image. |
◆ Details_FileNotFoundException() [5/5]
System::IO::Details_FileNotFoundException::Details_FileNotFoundException |
( |
const String & |
message, |
|
|
const String & |
fileName, |
|
|
const System::Exception & |
innerException |
|
) |
| |
|
protected |
Initializes a new instance of the FileNotFoundException class with a specified error message, the file name that cannot be found, and a reference to the inner exception that is the cause of this exception.
- Parameters
-
message | The error message that explains the reason for the exception. |
fileName | The full name of the file with the invalid image. |
innerException | The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception. |
◆ DoThrow()
- See also
- Exception::DoThrow