@vechain/sdk-errors
Version:
This module is dedicated to managing and customizing errors within the VeChain SDK
21 lines (17 loc) • 577 B
text/typescript
import { VechainSDKError } from '../sdk-error';
import { type ObjectErrorData } from '../types';
/**
* Cannot find transaction error.
*
* WHEN TO USE:
* * Error will be thrown when the transaction is not into the blockchain.
*/
class ContractDeploymentFailed extends VechainSDKError<ObjectErrorData> {}
/**
* Error when calling a read function on a contract.
*
* WHEN TO USE:
* * Error will be thrown when a read (call) operation fails.
*/
class ContractCallError extends VechainSDKError<ObjectErrorData> {}
export { ContractCallError, ContractDeploymentFailed };