15 lines
308 B
JavaScript
Raw Normal View History

2021-05-10 15:36:09 +02:00
'use strict';
2021-06-24 18:28:36 +02:00
class NotNullConstraint extends Error {
constructor({ column = '' } = {}) {
super();
this.name = 'NotNullConstraint';
this.message = `Not null constraint violation${column ? `on on column ${column}` : ''}.`;
2021-07-29 16:39:26 +02:00
this.stack = '';
2021-05-10 15:36:09 +02:00
}
}
module.exports = {
2021-06-24 18:28:36 +02:00
NotNullConstraint,
2021-05-10 15:36:09 +02:00
};