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 InnerException property.

Inheritance
Object
Exception
UnexpectedlyTerminatedActionException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
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: Libplanet.Action
Assembly: Libplanet.dll
Syntax
[Serializable]
public sealed class UnexpectedlyTerminatedActionException : Exception, ISerializable

Constructors

| Improve this Doc View Source

UnexpectedlyTerminatedActionException(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 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 Message.

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

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

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>>
| 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
Overrides
Exception.GetObjectData(SerializationInfo, StreamingContext)

Implements

System.Runtime.Serialization.ISerializable

Extension Methods

ExtractableException.ExtractMetadata(Exception)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium