CgsError

sealed interface CgsError

Represents an error emitted by the CGS SDK.

The hierarchy is sealed to ensure all error types are known and exhaustively handled by consumers through when expressions.

Inheritors

Types

Link copied to clipboard
sealed interface Auth : CgsError

Errors related to authentication and authorization.

Link copied to clipboard
sealed interface Content : CgsError

Errors related to content operations.

Link copied to clipboard
sealed interface Network : CgsError

Errors caused by network conditions or HTTP responses.

Link copied to clipboard
data class Unexpected(val cause: Throwable? = null) : CgsError

An unexpected error occurred that does not map to a known SDK error type.

Link copied to clipboard
data class UnsupportedOperation(val reason: String? = null) : CgsError

Operation is not supported by the SDK or for the given configuration.