Class: BroadcastTxError
@shareledgerjs/client.BroadcastTxError
An error when broadcasting the transaction. This contains the CheckTx errors from the blockchain. Once a transaction is included in a block no BroadcastTxError is thrown, even if the execution fails (DeliverTx errors).
Hierarchy
Error
↳
BroadcastTxError
Constructors
constructor
• new BroadcastTxError(code
, codespace
, log
)
Parameters
Name | Type |
---|---|
code | number |
codespace | string |
log | undefined | string |
Overrides
Error.constructor
Properties
code
• Readonly
code: number
codespace
• Readonly
codespace: string
log
• Readonly
log: undefined
| string
message
• message: string
Inherited from
Error.message
name
• name: string
Inherited from
Error.name
stack
• Optional
stack: string
Inherited from
Error.stack
prepareStackTrace
▪ Static
Optional
prepareStackTrace: (err
: Error
, stackTraces
: CallSite
[]) => any
Type declaration
▸ (err
, stackTraces
): any
Optional override for formatting stack traces
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Parameters
Name | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
Returns
any
Inherited from
Error.prepareStackTrace
stackTraceLimit
▪ Static
stackTraceLimit: number
Inherited from
Error.stackTraceLimit
Methods
captureStackTrace
▸ Static
captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
Parameters
Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace