UNPKG

@manuth/exceptions

Version:

Provides lightweight versions of the most important exceptions from Microsoft's .NET

29 lines (28 loc) 912 B
import { Exception } from "./Exception.js"; import { IOException } from "./IOException.js"; /** * 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 {@linkcode 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. */ get FileName(): string | undefined; }