CGSException

open class CGSException(val message: String? = null, val cause: Throwable? = null) : Exception

Base exception type thrown by the CGS SDK.

Everything the SDK throws extends this, so one catch covers the lot. In practice the concrete subclasses all mean the same thing — the SDK is wired up wrong — and are meant to be fixed during integration rather than handled at runtime.

Failures you can actually recover from are never thrown: they come back as a CgsError inside a CgsResult or a CgsStreamState.

Parameters

message

optional human-readable description of the failure

cause

optional underlying throwable that triggered this exception

Inheritors

Constructors

Link copied to clipboard
constructor(message: String? = null, cause: Throwable? = null)

Properties

Link copied to clipboard
open override val cause: Throwable? = null
Link copied to clipboard
open override val message: String? = null