Show / Hide Table of Contents

Class PrecheckException

Represents the condition where a submitted transaction failed the pre-check validation by the network gateway node.

Inheritance
Object
Exception
PrecheckException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public sealed class PrecheckException : Exception, ISerializable

Constructors

| Improve this Doc View Source

PrecheckException(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.

| Improve this Doc View Source

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 Source

RequiredFee

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
| Improve this Doc View Source

Status

The status code returned by the gateway node.

Declaration
public ResponseCode Status { get; }
Property Value
Type Description
ResponseCode
| Improve this Doc View Source

TxId

The Transaction ID corresponding to the request that failed.

Declaration
public TxId TxId { get; }
Property Value
Type Description
TxId

Implements

System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
In This Article
Back to top .NET Client Library for Hedera Hashgraph