UNPKG

pooja-docucomb-tink-crypto

Version:

A multi-language, cross-platform library that provides cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse.

18 lines (15 loc) 387 B
/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * The base class for all security exceptions. */ export class SecurityException extends Error { constructor(message?: string) { super(message); Object.setPrototypeOf(this, SecurityException.prototype); } } SecurityException.prototype.name = 'SecurityException';