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(): Logger

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

Inheritors

PermissionException

class PermissionException : CordaRuntimeException, RpcSerializableError, 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.

UnexpectedFlowEndException

class UnexpectedFlowEndException : CordaRuntimeException, IdentifiableException

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.