@mvx/identity
Version:
identity is oidc for mvc, type-mvc is base on koa. Decorator, Ioc, AOP mvc framework on server.
33 lines (31 loc) • 1.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthenticationError = void 0;
var tslib_1 = require("tslib");
var ioc_1 = require("@tsdi/ioc");
var mvc_1 = require("@mvx/mvc");
/**
* error.
*
* @export
* @class OIDCError
* @extends {HttpError}
*/
var AuthenticationError = /** @class */ (function (_super) {
tslib_1.__extends(AuthenticationError, _super);
// tslint:disable-next-line: variable-name
function AuthenticationError(status, message, error_description) {
var _this = _super.call(this, status, message) || this;
_this.error_description = error_description;
_this.name = ioc_1.lang.getClassName(_this);
_this.error = _this.message;
_this.expose = status < 500;
return _this;
}
AuthenticationError.ρAnn = function () {
return { "name": "AuthenticationError" };
};
return AuthenticationError;
}(mvc_1.HttpError));
exports.AuthenticationError = AuthenticationError;
//# sourceMappingURL=../sourcemaps/errors/AuthenticationError.js.map