Package-level declarations

Types

Link copied to clipboard
class IllegalConfigurationError(val code: String, val subStatus: Int? = null, val throwable: Throwable? = null) : TidalError

Raised whenever an operation failed due to an incorrect configuration.

Link copied to clipboard
class NetworkError(val code: String, val throwable: Throwable? = null) : TidalError
Link copied to clipboard
data class RetryableError(val code: String, val subStatus: Int? = null, val throwable: Throwable? = null) : TidalError
Link copied to clipboard
Link copied to clipboard
interface TidalMessage
Link copied to clipboard
class UnexpectedError(val code: String, val subStatus: Int? = null, val throwable: Throwable? = null) : TidalError

An error to be raised for unexpected errors. Can be used as a "catch all" error.

Properties

Link copied to clipboard
val Any.logger: KLogger

Functions

Link copied to clipboard
fun KLogger.d(throwable: Throwable? = null, message: () -> Any?)

Convenience function to call KLogger.debug()

Link copied to clipboard
fun KLogger.e(throwable: Throwable? = null, message: () -> Any?)

Convenience function to call KLogger.error()

Link copied to clipboard
fun getLoggerByName(name: String): KLogger
Link copied to clipboard
fun KLogger.i(throwable: Throwable? = null, message: () -> Any?)

Convenience function to call KLogger.info()

Link copied to clipboard
fun KLogger.v(throwable: Throwable? = null, message: () -> Any?)

Convenience function to call KLogger.verbose()

Link copied to clipboard
fun KLogger.verbose(throwable: Throwable? = null, message: () -> Any?)

verbose is generally considered a synonym of trace, so to stay in line with typical logging frameworks on Android, we add this convenience function

Link copied to clipboard
fun KLogger.w(throwable: Throwable? = null, message: () -> Any?)

Convenience function to call KLogger.warn()