corda / net.corda.client.rpc / RPCException

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.

Constructors

<init>

RPCException(msg: String)RPCException(message: String?, cause: Throwable?)

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

Inherited Properties

cause

open val cause: Throwable?

message

open val message: String?

originalExceptionClassName

open var originalExceptionClassName: String?

originalMessage

open val originalMessage: String?

Inherited 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

ConnectionFailureException

open class ConnectionFailureException : RPCException

Signals that the underlying RPCConnection dropped.

CouldNotStartFlowException

class CouldNotStartFlowException : RPCException

Thrown when a flow start command died before receiving a net.corda.core.messaging.FlowHandle. On catching this exception, the typical behaviour is to run a "logical retry", meaning only retry the flow if the expected outcome did not occur.

MaxRpcRetryException

class MaxRpcRetryException : RPCException

Thrown to indicate an RPC operation has been retried for the maxNumberOfRetries unsuccessfully.

UnrecoverableRPCException

open class UnrecoverableRPCException : RPCException

Thrown to indicate a fatal error in the RPC system which cannot be recovered from and so needs some manual support.