RpcException

Wrapper around exceptions thrown in remote calls.

Pins code to KsrpcException.INTERNAL_ERROR_CODE (-32603, matching the JSON-RPC "internal error" reserved code) — the generic "remote error" classification. Typed binding of error codes to @Serializable data classes via @KsError surfaces as bare KsrpcException instances with mapped code / data.

Constructors

Link copied to clipboard
constructor(message: String)

Properties

Link copied to clipboard
Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
val code: Int
Link copied to clipboard
val data: Any?
Link copied to clipboard
open override val message: String