UNPKG

@manuth/exceptions

Version:

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

28 lines (27 loc) 898 B
import { Exception } from "./Exception.js"; /** * The exception that is thrown when one of the arguments provided to a method is not valid. */ export declare class ArgumentException extends Exception { /** * The name of the parameter that causes this exception. */ private paramName?; /** * Initializes a new instance of the {@linkcode ArgumentException} class. * * @param message * The error message that explains the reason for the exception. * * @param paramName * The name of the parameter that causes this exception. * * @param innerException * The Exception instance that caused the current exception. */ constructor(message?: string, paramName?: string, innerException?: Exception); /** * Gets the name of the parameter that causes this exception. */ get ParamName(): string | undefined; }