UNPKG

verifiablecredentials-crypto-sdk-typescript-keystore

Version:
21 lines 659 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Base error class for the crypto. */ class CryptoError extends Error { /** * Create instance of @class CryptoProtocolError * @param protocol name * @param message for the error */ constructor(algorithm, message) { super(message); // NOTE: Extending 'Error' breaks prototype chain since TypeScript 2.1. // The following line restores prototype chain. Object.setPrototypeOf(this, new.target.prototype); this.algorithm = algorithm; } } exports.default = CryptoError; //# sourceMappingURL=CryptoError.js.map