@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
23 lines • 656 B
JavaScript
/**
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Thrown when an arithmetic operation fails due to NaN, Infinity, Division by Zero, or other arithmetic errors.
*/
export class ArithmeticError extends Error {
/**
* Constructs a new `ArithmeticError` instance.
*
* @param message - The error message.
* @param cause - The nest error (if any).
*/
constructor(message, cause = {}) {
super(message);
this.name = this.constructor.name;
if (cause) {
this.cause = cause;
}
Error.captureStackTrace(this, this.constructor);
}
}
//# sourceMappingURL=arithmetic_error.js.map