@manuth/exceptions
Version:
Provides lightweight versions of the most important exceptions from Microsoft's .NET
32 lines (31 loc) • 1.09 kB
TypeScript
import { ArgumentException } from "./ArgumentException.js";
import { Exception } from "./Exception.js";
/**
* The exception that is thrown when a method attempts to construct a culture that is not available.
*/
export declare class CultureNotFoundException extends ArgumentException {
/**
* The culture name that cannot be found.
*/
private invalidCultureName?;
/**
* 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?: string, invalidCultureName?: string, paramName?: string, innerException?: Exception);
/**
* Gets the culture name that cannot be found.
*/
get InvalidCultureName(): string | undefined;
}