StorageException

class StorageException : FirebaseException


Represents an Exception resulting from an operation on a StorageReference.

Summary

Nested types

@Retention(value = RetentionPolicy.SOURCE)
@IntDef(value = )
annotation StorageException.ErrorCode

An ErrorCode indicates the source of a failed StorageTask or operation.

Constants

const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
ERROR_UNKNOWN = -13000

Public functions

java-static StorageException
java-static StorageException
java-static StorageException?
fromExceptionAndHttpCode(exception: Throwable?, httpResultCode: Int)
Boolean

Constants

ERROR_BUCKET_NOT_FOUND

const val ERROR_BUCKET_NOT_FOUND = -13011: Int

ERROR_CANCELED

const val ERROR_CANCELED = -13040: Int

ERROR_INVALID_CHECKSUM

const val ERROR_INVALID_CHECKSUM = -13031: Int

ERROR_NOT_AUTHENTICATED

const val ERROR_NOT_AUTHENTICATED = -13020: Int

ERROR_NOT_AUTHORIZED

const val ERROR_NOT_AUTHORIZED = -13021: Int

ERROR_OBJECT_NOT_FOUND

const val ERROR_OBJECT_NOT_FOUND = -13010: Int

ERROR_PROJECT_NOT_FOUND

const val ERROR_PROJECT_NOT_FOUND = -13012: Int

ERROR_QUOTA_EXCEEDED

const val ERROR_QUOTA_EXCEEDED = -13013: Int

ERROR_RETRY_LIMIT_EXCEEDED

const val ERROR_RETRY_LIMIT_EXCEEDED = -13030: Int

ERROR_UNKNOWN

const val ERROR_UNKNOWN = -13000: Int

Public functions

fromErrorStatus

java-static fun fromErrorStatus(status: Status): StorageException

fromException

java-static fun fromException(exception: Throwable): StorageException

fromExceptionAndHttpCode

java-static fun fromExceptionAndHttpCode(exception: Throwable?, httpResultCode: Int): StorageException?

getIsRecoverableException

fun getIsRecoverableException(): Boolean
Returns
Boolean

True if this request failed due to a network condition that may be resolved in a future attempt.

Public properties

cause

val causeThrowable!

errorCode

val errorCodeInt

httpResultCode

val httpResultCodeInt