UNPKG

@wireapp/cryptobox

Version:

High-level API with persistent storage for Proteus.

11 lines (9 loc) 288 B
export default class CryptoboxError extends Error { constructor(public message: string) { super(message); Object.setPrototypeOf(this, CryptoboxError.prototype); this.message = message; this.name = (<any>this).constructor.name; this.stack = new Error().stack; } }