UNPKG

net-exceptions

Version:

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

35 lines 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ArgumentException_1 = require("./ArgumentException"); /** * The exception that is thrown when a method attempts to construct a culture that is not available. */ class CultureNotFoundException extends ArgumentException_1.ArgumentException { /** * Initializes a new instance of the `CultureNotFoundException` class. * * @param message * The error message that explains the reason for the exception. * * @param invalidCultureName * The culture name that cannot be found. * * @param paramName * The name of the parameter that causes this exception. * * @param innerException * The Exception instance that caused the current exception. */ constructor(message, invalidCultureName, paramName, innerException) { super(message, paramName, innerException); this.invalidCultureName = invalidCultureName; } /** * Gets the culture name that cannot be found. */ get InvalidCultureName() { return this.invalidCultureName; } } exports.CultureNotFoundException = CultureNotFoundException; //# sourceMappingURL=CultureNotFoundException.js.map