Class PrecheckException
Represents the condition where a submitted transaction failed the pre-check validation by the network gateway node.
Implements
Inherited Members
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public sealed class PrecheckException : Exception, ISerializable
Constructors
| Improve this Doc View SourcePrecheckException(String, TxId, ResponseCode, UInt64)
Exception constructor.
Declaration
public PrecheckException(string message, TxId transaction, ResponseCode code, ulong requiredFee)
Parameters
Type | Name | Description |
---|---|---|
String | message | A message describing the nature of the problem. |
TxId | transaction | The Transaction ID corresponding to the request that failed. |
ResponseCode | code | The status code returned by the gateway node. |
UInt64 | requiredFee | The cost value returned for insufficient transaction fee errors. |
PrecheckException(String, TxId, ResponseCode, UInt64, Exception)
Exception constructor.
Declaration
public PrecheckException(string message, TxId transaction, ResponseCode code, ulong requiredFee, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | A message describing the nature of the problem. |
TxId | transaction | The Transaction ID corresponding to the request that failed. |
ResponseCode | code | The status code returned by the gateway node. |
UInt64 | requiredFee | The cost value returned for insufficient transaction fee errors. |
Exception | innerException | Inner exception causing this error, typically reserved for fundamental GRPC pipeline exceptions. |
Properties
| Improve this Doc View SourceRequiredFee
If the returned status is InsufficientTxFee this value will contain the transaction fee necessary to execute the transaction.
Declaration
public ulong RequiredFee { get; }
Property Value
Type | Description |
---|---|
UInt64 |
Status
The status code returned by the gateway node.
Declaration
public ResponseCode Status { get; }
Property Value
Type | Description |
---|---|
ResponseCode |
TxId
The Transaction ID corresponding to the request that failed.
Declaration
public TxId TxId { get; }
Property Value
Type | Description |
---|---|
TxId |