Show / Hide Table of Contents

Class TxFailure

Summarizes an execution result of a Transaction with any exception-throwing actions.

Inheritance
Object
TxExecution
TxFailure
Implements
ISerializable
Inherited Members
TxExecution._codec
TxExecution.BlockHash
TxExecution.TxId
TxExecution.ActionsLogsList
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Tx
Assembly: Libplanet.dll
Syntax
[Serializable]
public sealed class TxFailure : TxExecution, ISerializable

Constructors

| Improve this Doc View Source

TxFailure(BlockHash, TxId, List<List<String>>, Exception)

Creates a TxFailure instance.

Declaration
public TxFailure(BlockHash blockHash, TxId txId, List<List<string>> actionsLogsList, Exception exception)
Parameters
Type Name Description
BlockHash blockHash

The Hash of the Block that the Transaction is executed within.

TxId txId

The executed Transaction's Id.

List<List<String>> actionsLogsList

The logs recorded while executing actions.

Exception exception

The uncaught exception thrown by an action in the transaction.

| Improve this Doc View Source

TxFailure(BlockHash, TxId, List<List<String>>, String, IValue)

Creates a TxFailure instance.

Declaration
public TxFailure(BlockHash blockHash, TxId txId, List<List<string>> actionsLogsList, string exceptionName, IValue exceptionMetadata)
Parameters
Type Name Description
BlockHash blockHash

The Hash of the Block that the Transaction is executed within.

TxId txId

The executed Transaction's Id.

List<List<String>> actionsLogsList

The logs recorded while executing actions.

String exceptionName

The name of the exception type, e.g., System.ArgumentException.

Bencodex.Types.IValue exceptionMetadata

Optional metadata about the exception.

Properties

| Improve this Doc View Source

ExceptionMetadata

Optional metadata about the exception.

Declaration
[Pure]
public IValue ExceptionMetadata { get; }
Property Value
Type Description
Bencodex.Types.IValue
| Improve this Doc View Source

ExceptionName

The name of the exception type, e.g., System.ArgumentException.

Declaration
[Pure]
public string ExceptionName { get; }
Property Value
Type Description
String

Methods

| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Summarizes an execution result of a Transaction with any exception-throwing actions.

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
Overrides
TxExecution.GetObjectData(SerializationInfo, StreamingContext)

Implements

System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium