import { ExceptionBase } from './exception.base'; /** * Used to indicate that an incorrect argument was provided to a method/function/class constructor * * @class ArgumentInvalidException * @extends {ExceptionBase} */ export declare class ArgumentInvalidException extends ExceptionBase { readonly code = "GENERIC.ARGUMENT_INVALID"; } /** * Used to indicate that some validation logic error has occured. * * @class ValidationFailureException * @extends {ExceptionBase} */ export declare class ValidationFailureException extends ExceptionBase { readonly code = "GENERIC.VALIDATION_FAILURE"; } /** * Used to indicate that an argument was not provided (is empty object/array, null of undefined). * * @class ArgumentNotProvidedException * @extends {ExceptionBase} */ export declare class ArgumentNotProvidedException extends ExceptionBase { readonly code = "GENERIC.ARGUMENT_NOT_PROVIDED"; } /** * Used to indicate that an argument is out of allowed range * (for example: incorrect string/array length, number not in allowed min/max range etc) * * @class ArgumentOutOfRangeException * @extends {ExceptionBase} */ export declare class ArgumentOutOfRangeException extends ExceptionBase { readonly code = "GENERIC.ARGUMENT_OUT_OF_RANGE"; } /** * Used to indicate conflicting entities (usually in the database) * * @class ConflictException * @extends {ExceptionBase} */ export declare class ConflictException extends ExceptionBase { readonly code = "GENERIC.CONFLICT"; } /** * Used to indicate that entity is not found * * @class NotFoundException * @extends {ExceptionBase} */ export declare class NotFoundException extends ExceptionBase { static readonly message = "Not found"; constructor(message?: string); readonly code = "GENERIC.NOT_FOUND"; } /** * Used to indicate an internal server error that does not fall under all other errors * * @class InternalServerErrorException * @extends {ExceptionBase} */ export declare class InternalServerErrorException extends ExceptionBase { static readonly message = "Internal server error"; constructor(message?: string); readonly code = "GENERIC.INTERNAL_SERVER_ERROR"; } /** * Used to indicate an error originating from an adapter * * @class AdapterErrorException * @extends {ExceptionBase} */ export declare class AdapterErrorException extends ExceptionBase { static readonly message = "Adapter error"; constructor(message?: string); readonly code = "GENERIC.ADAPTER_ERROR"; } //# sourceMappingURL=exceptions.d.ts.map