mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 06:28:54 +00:00
10 lines
229 B
JavaScript
10 lines
229 B
JavaScript
class FormatError extends Error {
|
|
constructor(message, query, parameters) {
|
|
super(message);
|
|
if (parameters) this.sql = `${query} ${JSON.stringify(parameters)}`;
|
|
else this.sql = query;
|
|
}
|
|
}
|
|
|
|
export { FormatError };
|