StorytellerError

Represents a base class for all errors that can occur within the Storyteller SDK. Each specific error type provides more context about the issue encountered.

Parameters

msg

A descriptive message for the error.

cause

The underlying Exception that caused this error, if any.

Inheritors

Types

Link copied to clipboard

Indicates that a specified Clip ID was not found within a given collection.

Link copied to clipboard

Indicates that content (e.g., Stories, Clips) could not be loaded for the current user. This may also suggest an issue with the API key configuration or content availability.

Link copied to clipboard
data class GenericError(val cause: Exception? = null) : StorytellerError

Represents an unclassified or generic error that occurred within the Storyteller SDK.

Link copied to clipboard
data class InitializationError(val cause: Exception? = null) : StorytellerError

Indicates an error during the general initialization process of the Storyteller SDK.

Link copied to clipboard
data class InvalidAPIKeyError(val cause: Exception? = null) : StorytellerError

Indicates that the API key provided during initialization is invalid or incorrect.

Link copied to clipboard

Indicates that a provided deep link string is invalid or could not be processed.

Link copied to clipboard

Indicates that the user ID provided or derived is not valid. This may also suggest an issue with the API key configuration.

Link copied to clipboard
data class JSONParseError(val cause: Exception? = null) : StorytellerError

Indicates a problem parsing JSON data, typically when processing settings or API responses.

Link copied to clipboard

Indicates that a specified Story ID was not found within a given list or category context.

Link copied to clipboard
data class LocalSettingsNotFoundError(val cause: Exception? = null) : StorytellerError

Indicates that SDK settings could not be loaded because no local (cached) settings were found, and fetching from the network might have also failed or was not attempted.

Link copied to clipboard
data class NetworkError(val cause: Exception? = null) : StorytellerError

A general network error occurred while trying to fetch data.

Link copied to clipboard
data class NetworkTimeoutError(val cause: Exception? = null) : StorytellerError

Indicates a network timeout occurred, often during initialization or data fetching. This can happen if the device has no network access or the connection is too slow.

Link copied to clipboard

Indicates that an operation requiring the main thread was attempted on a background thread.

Link copied to clipboard
data class SettingsError(val cause: Exception? = null) : StorytellerError

Indicates an error while trying to load SDK settings, either from the network or local cache.

Link copied to clipboard
data class SheetIdError(val cause: Exception? = null) : StorytellerError

Indicates that the provided ID for a Storyteller Sheet is invalid (e.g., blank).

Link copied to clipboard

Indicates an error during the initialization of the video player (ExoPlayer). This can occur if there are too many media codecs in use by other applications.

Properties

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

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard