UNPKG

net-exceptions

Version:

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

32 lines 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Exception_1 = require("./Exception"); /** * The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection. */ class KeyNotFoundException extends Exception_1.Exception { /** * Initialized a new instance of the `KeyNotFoundException` class. * * @param message * A message that describes the current exception. * * @param innerException * The Exception instance that caused the current exception. */ constructor(message, innerException) { switch (arguments.length) { case 0: super(); break; case 1: super(message); break; case 2: super(message, innerException); break; } } } exports.KeyNotFoundException = KeyNotFoundException; //# sourceMappingURL=KeyNotFoundException.js.map