RpcException

Wrapper around exceptions thrown in remote calls.

Pins code to -1 — a generic "remote error" classification. Typed binding of error codes to @Serializable data classes via @KsError will surface 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