UNPKG

@mvx/identity

Version:

identity is oidc for mvc, type-mvc is base on koa. Decorator, Ioc, AOP mvc framework on server.

29 lines (27 loc) 827 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthenticationError = void 0; const ioc_1 = require("@tsdi/ioc"); const mvc_1 = require("@mvx/mvc"); /** * error. * * @export * @class OIDCError * @extends {HttpError} */ class AuthenticationError extends mvc_1.HttpError { // tslint:disable-next-line: variable-name constructor(status, message, error_description) { super(status, message); this.error_description = error_description; this.name = ioc_1.lang.getClassName(this); this.error = this.message; this.expose = status < 500; } static ρAnn() { return { "name": "AuthenticationError" }; } } exports.AuthenticationError = AuthenticationError; //# sourceMappingURL=../sourcemaps/errors/AuthenticationError.js.map