2025-01-29 09:42:22 +01:00
|
|
|
import CustomRequestException from "./customRequestException";
|
|
|
|
|
|
|
|
export default class DatabaseActionException extends CustomRequestException {
|
|
|
|
constructor(action: string, table: string, err: any) {
|
2025-05-04 19:01:06 +02:00
|
|
|
let errstring = `${action} on ${table} with ${err?.code ?? "XX"} at ${err?.sqlMessage ?? err?.message ?? "XX"}`;
|
2025-01-29 09:42:22 +01:00
|
|
|
super(500, errstring, err);
|
|
|
|
}
|
|
|
|
}
|