@sequelize/core
Version:
Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, and IBM i. It features solid transaction support, relations, eager and lazy loading, read replication a
23 lines (22 loc) • 685 B
TypeScript
export interface CommonErrorProperties {
/** The SQL that triggered the error */
readonly sql: string;
}
/**
* The Base Error all Sequelize Errors inherit from.
*
* Sequelize provides a host of custom error classes, to allow you to do easier debugging.
* All of these errors are exported by the `@sequelize/core` package.
* All sequelize errors inherit from the base JS error object.
*/
export declare class BaseError extends Error {
/**
* @deprecated use {@link cause}.
*/
get parent(): this['cause'];
/**
* @deprecated use {@link cause}.
*/
get original(): this['cause'];
constructor(message?: string, options?: ErrorOptions);
}