UNPKG

net-exceptions

Version:

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

32 lines 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const IOException_1 = require("./IOException"); /** * The exception that is thrown when an attempt to access a file that does not exist on disk fails. */ class FileNotFoundException extends IOException_1.IOException { /** * 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, fileName, innerException) { super(message, innerException); this.fileName = fileName; } /** * Gets the name of the file that cannot be found. */ get FileName() { return this.fileName; } } exports.FileNotFoundException = FileNotFoundException; //# sourceMappingURL=FileNotFoundException.js.map