corda / net.corda.core / CordaRuntimeException

CordaRuntimeException

open class CordaRuntimeException : RuntimeException, CordaThrowable

Constructors

<init>

CordaRuntimeException(message: String?, cause: Throwable?)
CordaRuntimeException(message: String?)
CordaRuntimeException(originalExceptionClassName: String?, _message: String?, _cause: Throwable?)

Properties

cause

open val cause: Throwable?

message

open val message: String?

originalExceptionClassName

open var originalExceptionClassName: String?

originalMessage

open val originalMessage: String?

Functions

addSuppressed

open fun addSuppressed(suppressed: Array<Throwable>): Unit

equals

open fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

setCause

open fun setCause(cause: Throwable?): Unit

setMessage

open fun setMessage(message: String?): Unit

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.

Inheritors

HospitalizeFlowException

open class HospitalizeFlowException : CordaRuntimeException

This exception allows a flow to pass itself to the flow hospital. Once the flow reaches the hospital it will determine how to progress depending on what causes the exception wraps. Assuming there are no important wrapped exceptions, throwing a HospitalizeFlowException will place the flow in overnight observation, where it will be replayed at a later time.

KilledFlowException

class KilledFlowException : CordaRuntimeException

An exception that is thrown when a flow has been killed.

MissingAttachmentsRuntimeException

class MissingAttachmentsRuntimeException : CordaRuntimeException

PermissionException

class PermissionException : CordaRuntimeException, ClientRelevantError

Thrown to indicate that the calling user does not have permission for something they have requested (for example calling a method).

RPCException

open class RPCException : CordaRuntimeException

Thrown to indicate a fatal error in the RPC system itself, as opposed to an error generated by the invoked method.

ResultSerializationException

class ResultSerializationException : CordaRuntimeException

Thrown whenever a flow result cannot be serialized when attempting to save it in the database

UnexpectedFlowEndException

class UnexpectedFlowEndException : CordaRuntimeException

Thrown when a flow session ends unexpectedly due to a type mismatch (the other side sent an object of a type that we were not expecting), or the other side had an internal error, or the other side terminated when we were waiting for a response.

ZoneVersionTooLowException

class ZoneVersionTooLowException : CordaRuntimeException

When a Corda feature cannot be used due to the node's compatibility zone not enforcing a high enough minimum platform version.