UNPKG

@openpass/openpass-js-sdk

Version:
27 lines 851 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthCancelledError = exports.AuthError = exports.SdkError = void 0; class SdkError extends Error { constructor(message) { super(message); Object.setPrototypeOf(this, new.target.prototype); } } exports.SdkError = SdkError; class AuthError extends SdkError { constructor(error, errorDescription, errorUri, clientState) { super(errorDescription || error); this.error = error; this.errorDescription = errorDescription; this.errorUri = errorUri; this.clientState = clientState; } } exports.AuthError = AuthError; class AuthCancelledError extends SdkError { constructor(message) { super(message); } } exports.AuthCancelledError = AuthCancelledError; //# sourceMappingURL=errors.js.map