Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
24
node_modules/sequelize/lib/errors/database/exclusion-constraint-error.js
generated
vendored
Normal file
24
node_modules/sequelize/lib/errors/database/exclusion-constraint-error.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
const DatabaseError = require('./../database-error');
|
||||
|
||||
/**
|
||||
* Thrown when an exclusion constraint is violated in the database
|
||||
*/
|
||||
class ExclusionConstraintError extends DatabaseError {
|
||||
constructor(options) {
|
||||
options = options || {};
|
||||
options.parent = options.parent || { sql: '' };
|
||||
|
||||
super(options.parent);
|
||||
this.name = 'SequelizeExclusionConstraintError';
|
||||
|
||||
this.message = options.message || options.parent.message || '';
|
||||
this.constraint = options.constraint;
|
||||
this.fields = options.fields;
|
||||
this.table = options.table;
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ExclusionConstraintError;
|
||||
26
node_modules/sequelize/lib/errors/database/foreign-key-constraint-error.js
generated
vendored
Normal file
26
node_modules/sequelize/lib/errors/database/foreign-key-constraint-error.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
const DatabaseError = require('./../database-error');
|
||||
|
||||
/**
|
||||
* Thrown when a foreign key constraint is violated in the database
|
||||
*/
|
||||
class ForeignKeyConstraintError extends DatabaseError {
|
||||
constructor(options) {
|
||||
options = options || {};
|
||||
options.parent = options.parent || { sql: '' };
|
||||
|
||||
super(options.parent);
|
||||
this.name = 'SequelizeForeignKeyConstraintError';
|
||||
|
||||
this.message = options.message || options.parent.message || 'Database Error';
|
||||
this.fields = options.fields;
|
||||
this.table = options.table;
|
||||
this.value = options.value;
|
||||
this.index = options.index;
|
||||
this.reltype = options.reltype;
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ForeignKeyConstraintError;
|
||||
16
node_modules/sequelize/lib/errors/database/timeout-error.js
generated
vendored
Normal file
16
node_modules/sequelize/lib/errors/database/timeout-error.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const DatabaseError = require('./../database-error');
|
||||
|
||||
/**
|
||||
* Thrown when a database query times out because of a deadlock
|
||||
*/
|
||||
class TimeoutError extends DatabaseError {
|
||||
constructor(parent) {
|
||||
super(parent);
|
||||
this.name = 'SequelizeTimeoutError';
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = TimeoutError;
|
||||
24
node_modules/sequelize/lib/errors/database/unknown-constraint-error.js
generated
vendored
Normal file
24
node_modules/sequelize/lib/errors/database/unknown-constraint-error.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
const DatabaseError = require('./../database-error');
|
||||
|
||||
/**
|
||||
* Thrown when constraint name is not found in the database
|
||||
*/
|
||||
class UnknownConstraintError extends DatabaseError {
|
||||
constructor(options) {
|
||||
options = options || {};
|
||||
options.parent = options.parent || { sql: '' };
|
||||
|
||||
super(options.parent);
|
||||
this.name = 'SequelizeUnknownConstraintError';
|
||||
|
||||
this.message = options.message || 'The specified constraint does not exist';
|
||||
this.constraint = options.constraint;
|
||||
this.fields = options.fields;
|
||||
this.table = options.table;
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = UnknownConstraintError;
|
||||
Reference in New Issue
Block a user