Show / Hide Table of Contents

Class UnexpectedlyTerminatedActionException

The exception that is thrown during an IAction is being evaluated.

The actual exception that the Action threw is stored in the property.

Inheritance
Object
UnexpectedlyTerminatedActionException
Namespace: Libplanet.Action
Assembly: Libplanet.dll
Syntax
public sealed class UnexpectedlyTerminatedActionException : Exception

Constructors

| Improve this Doc View Source

UnexpectedlyTerminatedActionException(Nullable<HashDigest<SHA256>>, Nullable<Int64>, Nullable<TxId>, Nullable<HashDigest<SHA256>>, IAction, String, Exception)

Creates a new UnexpectedlyTerminatedActionException object.

Declaration
public UnexpectedlyTerminatedActionException(HashDigest<SHA256>? blockHash, long? blockIndex, TxId? txid, HashDigest<SHA256>? previousStateRootHash, IAction action, string message, Exception innerException)
Parameters
Type Name Description
Nullable<HashDigest<SHA256>> blockHash

The Hash of the Block<T> that action belongs to. This can be null on rehearsal mode.

Nullable<Int64> blockIndex

The Index of the Block<T> that action belongs to. This can be null on rehearsal mode.

Nullable<TxId> txid

The Id of the Transaction<T> that action belongs to. This can be null on rehearsal mode or if action is a BlockAction.

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 Source

Action

The IAction object which threw an exception.

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

BlockHash

The Hash of the Block<T> that Action belongs to. This can be null on rehearsal mode.

Declaration
public HashDigest<SHA256>? BlockHash { get; }
Property Value
Type Description
Nullable<HashDigest<SHA256>>
| Improve this Doc View Source

BlockIndex

The Index of the Block<T> that Action belongs to. This can be null on rehearsal mode.

Declaration
public long? BlockIndex { get; }
Property Value
Type Description
Nullable<Int64>
| Improve this Doc View Source

PreviousStateRootHash

Declaration
public HashDigest<SHA256>? PreviousStateRootHash { get; }
Property Value
Type Description
Nullable<HashDigest<SHA256>>
| Improve this Doc View Source

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 Source

GetObjectData(SerializationInfo, StreamingContext)

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
  • Improve this Doc
  • View Source
Back to top Copyright © 2019–2020 Planetarium