UNPKG

@manuth/exceptions

Version:

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

29 lines 888 B
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 class FileNotFoundException extends IOException { /** * 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, fileName, innerException) { super(message, innerException); this.fileName = fileName; } /** * Gets the name of the file that cannot be found. */ get FileName() { return this.fileName; } } //# sourceMappingURL=FileNotFoundException.js.map