Corda Runtime Exception
open class CordaRuntimeException(var originalExceptionClassName: String?, _message: String?, _cause: Throwable?) : RuntimeException, CordaThrowable
Base class for all exceptions used for runtime error conditions in Corda.
This is the exception class that is used to throw and handle all exceptions you could encounter at runtime in a flow. This class and subclasses can be serialized by Corda so are safe to throw in flows.
Constructors
Link copied to clipboard
Constructor with just a message and a cause, for rethrowing exceptions that can be serialized.
Link copied to clipboard
Constructor with just a message (creating a fresh execption).
Link copied to clipboard
fun CordaRuntimeException(originalExceptionClassName: String?, _message: String?, _cause: Throwable?)
Constructor used to wrap any execption in a safe way, taking the original exception class name, message and causes as parameters. This can wrap third party exceptions that cannot be serialized.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Allows to set the message after constructing the exception object.
Link copied to clipboard