mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
46 lines
1.3 KiB
JavaScript
46 lines
1.3 KiB
JavaScript
|
|
module.exports = {
|
|
LdapSearchError: LdapSearchError,
|
|
LdapBindError: LdapBindError,
|
|
IdentityError: IdentityError,
|
|
AccessDeniedError: AccessDeniedError,
|
|
AuthenticationRegulationError: AuthenticationRegulationError,
|
|
InvalidTOTPError: InvalidTOTPError,
|
|
}
|
|
|
|
function LdapSearchError(message) {
|
|
this.name = "LdapSearchError";
|
|
this.message = (message || "");
|
|
}
|
|
LdapSearchError.prototype = Object.create(Error.prototype);
|
|
|
|
function LdapBindError(message) {
|
|
this.name = "LdapBindError";
|
|
this.message = (message || "");
|
|
}
|
|
LdapBindError.prototype = Object.create(Error.prototype);
|
|
|
|
function IdentityError(message) {
|
|
this.name = "IdentityError";
|
|
this.message = (message || "");
|
|
}
|
|
IdentityError.prototype = Object.create(Error.prototype);
|
|
|
|
function AccessDeniedError(message) {
|
|
this.name = "AccessDeniedError";
|
|
this.message = (message || "");
|
|
}
|
|
AccessDeniedError.prototype = Object.create(Error.prototype);
|
|
|
|
function AuthenticationRegulationError(message) {
|
|
this.name = "AuthenticationRegulationError";
|
|
this.message = (message || "");
|
|
}
|
|
AuthenticationRegulationError.prototype = Object.create(Error.prototype);
|
|
|
|
function InvalidTOTPError(message) {
|
|
this.name = "InvalidTOTPError";
|
|
this.message = (message || "");
|
|
}
|
|
InvalidTOTPError.prototype = Object.create(Error.prototype);
|