net-exceptions
Version:
Provides lightweight versions of the most important exceptions from Microsoft's .NET
29 lines (28 loc) • 914 B
TypeScript
import { Exception } from "./Exception";
import { IOException } from "./IOException";
/**
* The exception that is thrown when an attempt to access a file that does not exist on disk fails.
*/
export declare class FileNotFoundException extends IOException {
/**
* The name of the file that cannot be found.
*/
private fileName;
/**
* Initializes a new instance of the `FileNotFoundException` class.
*
* @param message
* A message that describes the current exception.
*
* @param fileName
* The name of the file that cannot be found.
*
* @param innerException
* The Exception instance that caused the current exception.
*/
constructor(message?: string, fileName?: string, innerException?: Exception);
/**
* Gets the name of the file that cannot be found.
*/
readonly FileName: string;
}