/** * Collection of exceptions. * The validation functions of stdnum should raise one of the below exceptions * when validation of the number fails. */ /** * Top-level error for validating numbers. * * This exception should normally not be raised, only subclasses of this * exception. */ export declare class ValidationError extends Error { constructor(msg: string); } /** * Something is wrong with the format of the number. * * This generally means characters or delimiters that are not allowed are * part of the number or required parts are missing. */ export declare class InvalidFormat extends ValidationError { constructor(msg?: string); } /** * The number's internal checksum or check digit does not match. */ export declare class InvalidChecksum extends ValidationError { constructor(msg?: string); } /** * The length of the number is wrong */ export declare class InvalidLength extends ValidationError { constructor(msg?: string); } /** * One of the parts of the number has an invalid reference. * * Some part of the number refers to some external entity like a country * code, a date or a predefined collection of values. The number contains * some invalid reference. */ export declare class InvalidComponent extends ValidationError { constructor(msg?: string); }