UNPKG

ts-db-helper

Version:
38 lines (37 loc) 942 B
/** * @class QueryError is thrown when a query fails * * @see Error * @author Olivier Margarit * @since 0.1 */ export declare class QueryError implements Error { message: string; private query; private params; /** * @public * @property {string} name error name */ name: string; /** * @public * @property {any} stack error stack trace */ stack: any; /** * @public * @constructor * @param {string} message message explaining in details error * @param {string} query query text that did failed execution * @param {string} params query params of the failed query */ constructor(message: string, query: string, params: string); /** * @public * @method toString convert error to string * * @return {string} string represation of the error */ toString(): string; }