CordaRuntimeException

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
open fun CordaRuntimeException(@Nullable originalExceptionClassName: String, @Nullable message: String, @Nullable cause: Throwable)
Constructor used to wrap any exception in a safe way, taking the original exception class name, message and causes as parameters.
Link copied to clipboard
open fun CordaRuntimeException(@Nullable message: String, @Nullable cause: Throwable)
Constructor with just a message and a cause, for rethrowing exceptions that can be serialized.
Link copied to clipboard
open fun CordaRuntimeException(@Nullable message: String)
Constructor with just a message (creating a fresh execption).

Functions

Link copied to clipboard
fun addSuppressed(exception: Throwable)
open fun addSuppressed(@NotNull suppressed: Array<Throwable>)
Link copied to clipboard
open fun equals(@Nullable obj: Any): Boolean
Link copied to clipboard
Link copied to clipboard
@Nullable
open fun getCause(): Throwable
Link copied to clipboard
Link copied to clipboard
@Nullable
open fun getMessage(): String
Link copied to clipboard
@Nullable
open fun getOriginalMessage(): String
Link copied to clipboard
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun initCause(cause: Throwable): Throwable
Link copied to clipboard
open fun printStackTrace()
Link copied to clipboard
open fun setCause(@Nullable cause: Throwable)
Allows to set a Throwable as cause after constructing the exception object.
Link copied to clipboard
open fun setMessage(@Nullable message: String)
Allows to set the message after constructing the exception object.
Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
open val cause: Throwable
Link copied to clipboard
@get:Nullable
open var originalExceptionClassName: String
Link copied to clipboard

Inheritors

Link copied to clipboard