mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-07-05 03:31:56 +00:00
ed51d8b13f
major merge of features from the hosted branch that was created temporarily during the initial launch of jambonz.org
31 lines
445 B
JavaScript
31 lines
445 B
JavaScript
class DbError extends Error {
|
|
constructor(msg) {
|
|
super(msg);
|
|
}
|
|
}
|
|
|
|
class DbErrorBadRequest extends DbError {
|
|
constructor(msg) {
|
|
super(msg);
|
|
}
|
|
}
|
|
|
|
class DbErrorUnprocessableRequest extends DbError {
|
|
constructor(msg) {
|
|
super(msg);
|
|
}
|
|
}
|
|
|
|
class DbErrorForbidden extends DbError {
|
|
constructor(msg) {
|
|
super(msg);
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
DbError,
|
|
DbErrorBadRequest,
|
|
DbErrorUnprocessableRequest,
|
|
DbErrorForbidden
|
|
};
|