ParseResult

sealed class ParseResult

Sealed class representing the result of a parsing operation.

Inheritors

Types

Link copied to clipboard
data class Error(val exception: Throwable, val message: String = exception.message ?: "Unknown error") : ParseResult

Failed parsing result containing error information.

Link copied to clipboard
data class Success(val data: TimelineData) : ParseResult

Successful parsing result containing the timeline data.

Functions

Link copied to clipboard

Returns the data if successful, or null if failed.

Link copied to clipboard

Returns the data if successful, or throws the contained exception if failed.

Link copied to clipboard

Returns true if the result is an error.

Link copied to clipboard

Returns true if the result is successful.