StreamError

sealed class StreamError

Represents the generic error model.

Inheritors

Types

Link copied to clipboard
data class GenericError(val message: String) : StreamError

An error that only contains the message.

Link copied to clipboard
data class NetworkError(val message: String, val streamCode: Int, val statusCode: Int = UNKNOWN_STATUS_CODE, val cause: Throwable? = null) : StreamError

An error resulting from the network operation.

Link copied to clipboard
data class ThrowableError(val message: String, val cause: Throwable) : StreamError

An error that contains a message and cause.

Properties

Link copied to clipboard
abstract val message: String

Inherited functions

Link copied to clipboard

Copies the original StreamError objects with custom message.

Link copied to clipboard

Extracts the cause from StreamError object or null if it's not available.