Skip to content

Commit

Permalink
feat: define class properties for QueryFailedError to allow users to …
Browse files Browse the repository at this point in the history
…access a typed error (#7529)
  • Loading branch information
ejose19 committed Apr 3, 2021
1 parent e4ec429 commit b43dcba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/error/QueryFailedError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {ObjectUtils} from "../util/ObjectUtils";
* Thrown when query execution has failed.
*/
export class QueryFailedError extends Error {
query: string;
parameters: any[];

constructor(query: string, parameters: any[]|undefined, driverError: any) {
super();
Expand Down

0 comments on commit b43dcba

Please sign in to comment.