mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-01-25 02:08:24 +00:00
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
|
|
};
|