Class InvalidTxException
Serves as the base class for exceptions thrown when a transaction is invalid.
Inheritance
InvalidTxException
Implements
Inherited Members
System.Exception.GetBaseException()
System.Exception.HelpLink
System.Exception.InnerException
System.Exception.Message
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
public abstract class InvalidTxException : Exception, ISerializable
Constructors
| Improve this Doc View SourceInvalidTxException(String, TxId, Exception)
Serves as the base class for exceptions thrown when a transaction is invalid.
Declaration
protected InvalidTxException(string message, TxId txid, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | A descriptive error message for programmers. |
| TxId | txid | The invalid Transaction's Id. It is automatically included to the System.Exception.Message string. |
| Exception | innerException | The Exception for System.Exception.InnerException. |
InvalidTxException(String, TxId)
Instantiates a new exception object with proper metadata. Use InvalidTxException(String, TxId, Exception) if innerException is required.
Declaration
protected InvalidTxException(string message, TxId txid)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | A descriptive error message for programmers. |
| TxId | txid | The invalid Transaction's Id. It is automatically included to the System.Exception.Message string. |
Properties
| Improve this Doc View SourceTxId
The TxId of the invalid Transaction.
Declaration
public TxId TxId { get; }
Property Value
| Type | Description |
|---|---|
| TxId |