@aedart/contracts
Version:
The Ion contracts package. Contains types, interfaces and unique identifiers
29 lines (25 loc) • 743 B
TypeScript
/**
* @aedart/contracts
*
* BSD-3-Clause, Copyright (c) 2023-present Alin Eugen Deac <aedart@gmail.com>.
*/
/**
* Throwable
*
* Base interface for a custom {@link Error} that can be thrown.
*
* This interface is inspired by PHP's [`Throwable` interface]{@link https://www.php.net/manual/en/class.throwable.php}.
*
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#custom_error_types
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error
* @see Error
*/
interface Throwable extends Error {
}
/**
* Exceptions identifier
*
* @type {Symbol}
*/
declare const SUPPORT_EXCEPTIONS: unique symbol;
export { SUPPORT_EXCEPTIONS, type Throwable };