Class TxPolicyViolationException
An exception returned when a Transaction<T> violates a IBlockPolicy<T>.
Inherited Members
Namespace: Libplanet.Tx
Assembly: Libplanet.dll
Syntax
public class TxPolicyViolationException : InvalidTxException
Constructors
| Improve this Doc View SourceTxPolicyViolationException(String, TxId)
Creates a new TxPolicyViolationException instance. Use TxPolicyViolationException(String, TxId, Exception) if innerException is required.
Declaration
public TxPolicyViolationException(string message, TxId txid)
Parameters
Type | Name | Description |
---|---|---|
String | message | A description for the reason of violation given by an implementation of IBlockPolicy<T>. |
TxId | txid | The Id of the
Transaction<T> violating a IBlockPolicy<T>.
Gets prepended to |
TxPolicyViolationException(String, TxId, Exception)
Declaration
public TxPolicyViolationException(string message, TxId txid, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | A description for the reason of violation given by an implementation of IBlockPolicy<T>. |
TxId | txid | The Id of the
Transaction<T> violating a IBlockPolicy<T>.
Gets prepended to |
Exception | innerException | The |