Class TxFailure
Summarizes an execution result of a Transaction with any exception-throwing actions.
Implements
Inherited Members
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public sealed class TxFailure : TxExecution, ISerializable
Constructors
| Improve this Doc View SourceTxFailure(BlockHash, TxId, Exception)
Creates a TxFailure instance.
Declaration
public TxFailure(BlockHash blockHash, TxId txId, 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. |
| Exception | exception | The uncaught exception thrown by an action in the transaction. |
TxFailure(BlockHash, TxId, String)
Creates a TxFailure instance.
Declaration
public TxFailure(BlockHash blockHash, TxId txId, string exceptionName)
Parameters
| Type | Name | Description |
|---|---|---|
| BlockHash | blockHash | The Hash of the Block that the Transaction is executed within. |
| TxId | txId | The executed Transaction's Id. |
| String | exceptionName | The name of the exception type,
e.g., |
Properties
| Improve this Doc View SourceExceptionMetadata
Optional metadata about the exception.
Declaration
[Pure]
public IValue ExceptionMetadata { get; }
Property Value
| Type | Description |
|---|---|
| Bencodex.Types.IValue |
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 SourceGetObjectData(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 |