ts-db-helper
Version:
Simple ORM based on TypeScript
36 lines (35 loc) • 876 B
TypeScript
/**
* @class QueryError is thrown when a query fails
*
* @see Error
* @author Olivier Margarit
* @since 0.1
*/
export declare class RestoreDataError implements Error {
message: string;
/**
* @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);
/**
* @public
* @method toString convert error to string
*
* @return {string} string represation of the error
*/
toString(): string;
}