UNPKG

849 BTypeScriptView Raw
1export interface ErrorOptions {
2 stack?: string;
3}
4export interface CommonErrorProperties {
5 /** The database specific error which triggered this one */
6 readonly parent: Error;
7 /** The database specific error which triggered this one */
8 readonly original: Error;
9 /** The SQL that triggered the error */
10 readonly sql: string;
11}
12/**
13 * The Base Error all Sequelize Errors inherit from.
14 *
15 * Sequelize provides a host of custom error classes, to allow you to do easier debugging. All of these errors are exposed on the sequelize object and the sequelize constructor.
16 * All sequelize errors inherit from the base JS error object.
17 *
18 * This means that errors can be accessed using `Sequelize.ValidationError`
19 */
20declare abstract class BaseError extends Error {
21 constructor(message?: string);
22}
23export default BaseError;