premiere distribution de la page web
This commit is contained in:
25
server/node_modules/better-sqlite3/lib/sqlite-error.js
generated
vendored
Normal file
25
server/node_modules/better-sqlite3/lib/sqlite-error.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
|
||||
class SqliteError extends Error {
|
||||
constructor(message, code) {
|
||||
if (typeof code !== 'string') {
|
||||
throw new TypeError('Expected second argument to be a string');
|
||||
}
|
||||
|
||||
super('' + message);
|
||||
this.code = code;
|
||||
|
||||
if (typeof Error.captureStackTrace === 'function') {
|
||||
Error.captureStackTrace(this, SqliteError);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Object.defineProperty(SqliteError.prototype, 'name', {
|
||||
value: 'SqliteError',
|
||||
writable: true,
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
});
|
||||
|
||||
module.exports = SqliteError;
|
||||
Reference in New Issue
Block a user