Class UnexpectedlyTerminatedActionException
The exception that is thrown during an IAction is being evaluated.
The actual exception that the Action threw
is stored in the
Namespace: Libplanet.Action
Assembly: Libplanet.dll
Syntax
public sealed class UnexpectedlyTerminatedActionException : Exception
Constructors
| Improve this Doc View SourceUnexpectedlyTerminatedActionException(Nullable<ImmutableArray<Byte>>, Nullable<Int64>, Nullable<TxId>, Nullable<HashDigest<SHA256>>, IAction, String, Exception)
Creates a new UnexpectedlyTerminatedActionException object.
Declaration
public UnexpectedlyTerminatedActionException(ImmutableArray<byte>? preEvaluationHash, long? blockIndex, TxId? txid, HashDigest<SHA256>? previousStateRootHash, IAction action, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
Nullable<ImmutableArray<Byte>> | preEvaluationHash | The PreEvaluationHash of the
Block<T> that |
Nullable<Int64> | blockIndex | The Index of the Block<T>
that |
Nullable<TxId> | txid | The Id of
the Transaction<T> that |
Nullable<HashDigest<SHA256>> | previousStateRootHash | The Hash of states until previous action execution. This can be null on rehearsal mode or if the chain which executed the action, was not using TrieStateStore. |
IAction | action | The IAction object which threw an exception. |
String | message | Specifies a |
Exception | innerException | The actual exception that the Action threw. |
Properties
| Improve this Doc View SourceAction
The IAction object which threw an exception.
Declaration
public IAction Action { get; }
Property Value
Type | Description |
---|---|
IAction |
BlockIndex
Declaration
public long? BlockIndex { get; }
Property Value
Type | Description |
---|---|
Nullable<Int64> |
PreEvaluationHash
The PreEvaluationHash of the Block<T> that
Action belongs to. This can be null
on rehearsal mode.
Declaration
public ImmutableArray<byte>? PreEvaluationHash { get; }
Property Value
Type | Description |
---|---|
Nullable<ImmutableArray<Byte>> |
PreviousStateRootHash
Declaration
public HashDigest<SHA256>? PreviousStateRootHash { get; }
Property Value
Type | Description |
---|---|
Nullable<HashDigest<SHA256>> |
TxId
The Id of the Transaction<T> that
Action belongs to. This can be null
on rehearsal mode or
if Action is a BlockAction.
Declaration
public TxId? TxId { get; }
Property Value
Type | Description |
---|---|
Nullable<TxId> |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |