mirror of
https://github.com/strapi/strapi.git
synced 2025-07-17 22:14:25 +00:00
15 lines
308 B
JavaScript
15 lines
308 B
JavaScript
'use strict';
|
|
|
|
class NotNullConstraint extends Error {
|
|
constructor({ column = '' } = {}) {
|
|
super();
|
|
this.name = 'NotNullConstraint';
|
|
this.message = `Not null constraint violation${column ? `on on column ${column}` : ''}.`;
|
|
this.stack = '';
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
NotNullConstraint,
|
|
};
|