@manuth/exceptions
Version:
Provides lightweight versions of the most important exceptions from Microsoft's .NET
32 lines • 1.1 kB
JavaScript
import { ArgumentException } from "./ArgumentException.js";
/**
* The exception that is thrown when a method attempts to construct a culture that is not available.
*/
export class CultureNotFoundException extends ArgumentException {
/**
* Initializes a new instance of the {@linkcode 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;
}
}
//# sourceMappingURL=CultureNotFoundException.js.map