Companion

actual object Companion(source)
expect object Companion(source)
actual object Companion(source)

Properties

Link copied to clipboard
Link copied to clipboard
expect val ERROR_CANCELED: Int
actual val ERROR_CANCELED: Int
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
expect val ERROR_UNKNOWN: Int
actual val ERROR_UNKNOWN: Int

Functions

Link copied to clipboard

exception as a StorageException: itself if it is one, otherwise an ERROR_UNKNOWN wrapping it.

expect fun fromException(exception: Throwable): StorageException

exception as a StorageException: itself if it is one, otherwise an ERROR_UNKNOWN wrapping it.

actual fun fromException(exception: Throwable): StorageException

exception as a StorageException: itself if it is one, otherwise an ERROR_UNKNOWN wrapping it.

Link copied to clipboard
actual fun fromExceptionAndHttpCode(exception: Throwable?, httpResultCode: Int): StorageException?

exception as a StorageException with the error code of httpResultCode, or null if exception is null and the status is a success.

expect fun fromExceptionAndHttpCode(exception: Throwable?, httpResultCode: Int): StorageException?

exception as a StorageException with the error code of httpResultCode, or null if exception is null and the status is a success.

actual fun fromExceptionAndHttpCode(exception: Throwable?, httpResultCode: Int): StorageException?

exception as a StorageException with the error code of httpResultCode, or null if exception is null and the status is a success.