@sv443-network/coreutils
Version:
Cross-platform, general-purpose, JavaScript core library for Node, Deno and the browser. Intended to be used in conjunction with `@sv443-network/userutils` and `@sv443-network/djsutils`, but can be used independently as well.
22 lines (21 loc) • 840 B
TypeScript
/**
* @module Errors
* Contains custom error classes that all have a `date` property set to the time of the error throw
*/
/** Base class for all custom error classes - adds a `date` prop set to the time when the error was thrown */
export declare class DatedError extends Error {
readonly date: Date;
constructor(message: string, options?: ErrorOptions);
}
/** Error while validating checksum */
export declare class ChecksumMismatchError extends DatedError {
constructor(message: string, options?: ErrorOptions);
}
/** Error while migrating data */
export declare class MigrationError extends DatedError {
constructor(message: string, options?: ErrorOptions);
}
/** Error while validating data */
export declare class ValidationError extends DatedError {
constructor(message: string, options?: ErrorOptions);
}