init source
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const ConnectionError = require('./../connection-error');
|
||||
|
||||
/**
|
||||
* Thrown when a connection to a database is refused due to insufficient privileges
|
||||
*/
|
||||
class AccessDeniedError extends ConnectionError {
|
||||
constructor(parent) {
|
||||
super(parent);
|
||||
this.name = 'SequelizeAccessDeniedError';
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AccessDeniedError;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const ConnectionError = require('./../connection-error');
|
||||
|
||||
/**
|
||||
* Thrown when connection is not acquired due to timeout
|
||||
*/
|
||||
class ConnectionAcquireTimeoutError extends ConnectionError {
|
||||
constructor(parent) {
|
||||
super(parent);
|
||||
this.name = 'SequelizeConnectionAcquireTimeoutError';
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ConnectionAcquireTimeoutError;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const ConnectionError = require('./../connection-error');
|
||||
|
||||
/**
|
||||
* Thrown when a connection to a database is refused
|
||||
*/
|
||||
class ConnectionRefusedError extends ConnectionError {
|
||||
constructor(parent) {
|
||||
super(parent);
|
||||
this.name = 'SequelizeConnectionRefusedError';
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ConnectionRefusedError;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const ConnectionError = require('./../connection-error');
|
||||
|
||||
/**
|
||||
* Thrown when a connection to a database times out
|
||||
*/
|
||||
class ConnectionTimedOutError extends ConnectionError {
|
||||
constructor(parent) {
|
||||
super(parent);
|
||||
this.name = 'SequelizeConnectionTimedOutError';
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ConnectionTimedOutError;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const ConnectionError = require('./../connection-error');
|
||||
|
||||
/**
|
||||
* Thrown when a connection to a database has a hostname that was not found
|
||||
*/
|
||||
class HostNotFoundError extends ConnectionError {
|
||||
constructor(parent) {
|
||||
super(parent);
|
||||
this.name = 'SequelizeHostNotFoundError';
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HostNotFoundError;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const ConnectionError = require('./../connection-error');
|
||||
|
||||
/**
|
||||
* Thrown when a connection to a database has a hostname that was not reachable
|
||||
*/
|
||||
class HostNotReachableError extends ConnectionError {
|
||||
constructor(parent) {
|
||||
super(parent);
|
||||
this.name = 'SequelizeHostNotReachableError';
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HostNotReachableError;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const ConnectionError = require('./../connection-error');
|
||||
|
||||
/**
|
||||
* Thrown when a connection to a database has invalid values for any of the connection parameters
|
||||
*/
|
||||
class InvalidConnectionError extends ConnectionError {
|
||||
constructor(parent) {
|
||||
super(parent);
|
||||
this.name = 'SequelizeInvalidConnectionError';
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = InvalidConnectionError;
|
||||
Reference in New Issue
Block a user