9 lines
338 B
TypeScript
9 lines
338 B
TypeScript
|
import CustomRequestException from "./customRequestException";
|
||
|
|
||
|
export default class DatabaseActionException extends CustomRequestException {
|
||
|
constructor(action: string, table: string, err: any) {
|
||
|
let errstring = `${action} on ${table} with ${err?.code ?? "XX"} at ${err?.sqlMessage ?? "XX"}`;
|
||
|
super(500, errstring, err);
|
||
|
}
|
||
|
}
|