CantonException

class CantonException(val error: CantonError, cause: Throwable? = null) : RuntimeException

A ledger failure decoded into a CantonError — either a gRPC failure (cause set) or an asynchronous command rejection reported via a completion event (no cause).

Constructors

Link copied to clipboard
constructor(error: CantonError, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

The decoded failure; branch on CantonError.retryable and CantonError.isAuthFailure rather than on the message.

Link copied to clipboard
Link copied to clipboard
open val message: String?
Link copied to clipboard
Link copied to clipboard