UNPKG

@wireapp/cryptobox

Version:

High-level API with persistent storage for Proteus.

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