Package net.corda.v5.ledger.utxo
Class ContractVerificationException
-
- All Implemented Interfaces:
-
java.io.Serializable
,net.corda.v5.base.exceptions.CordaThrowable
public final class ContractVerificationException extends CordaRuntimeException
Represents the exception that is thrown for a contract verification failure.
-
-
Field Summary
Fields Modifier and Type Field Description public final SecureHash
transactionId
public final List<ContractVerificationFailure>
failureReasons
public String
originalExceptionClassName
public Throwable
cause
public Array<StackTraceElement>
stackTrace
-
Constructor Summary
Constructors Constructor Description ContractVerificationException(SecureHash transactionId, List<ContractVerificationFailure> failureReasons)
Creates a new instance of the ContractVerificationException class.
-
Method Summary
Modifier and Type Method Description SecureHash
getTransactionId()
Gets the transaction ID of the transaction that has failed verification. List<ContractVerificationFailure>
getFailureReasons()
Gets the list of failure reasons for the transaction that has failed verification. -
Methods inherited from class net.corda.v5.base.exceptions.CordaRuntimeException
addSuppressed, equals, getCause, getMessage, getOriginalExceptionClassName, getOriginalMessage, hashCode, setCause, setMessage, setOriginalExceptionClassName
-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ContractVerificationException
ContractVerificationException(SecureHash transactionId, List<ContractVerificationFailure> failureReasons)
Creates a new instance of the ContractVerificationException class.- Parameters:
transactionId
- The transaction ID of the transaction that has failed verification.failureReasons
- The list of failure reasons for the transaction that has failed verification.
-
-
Method Detail
-
getTransactionId
@NotNull() SecureHash getTransactionId()
Gets the transaction ID of the transaction that has failed verification.
-
getFailureReasons
@NotNull() List<ContractVerificationFailure> getFailureReasons()
Gets the list of failure reasons for the transaction that has failed verification.
-
-
-
-