CGSException

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

Base exception type thrown by the CGS SDK.

Every exception CGS throws extends this, so one catch covers them all. 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, a CgsStreamState or a LoadState.Error, or as a download's Failed state.

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