StorageException

classStorageException :FirebaseException


Represents an Exception resulting from an operation on aStorageReference.

Summary

Nested types

@Retention(value = RetentionPolicy.SOURCE)
@IntDef(value = )
annotationStorageException.ErrorCode

AnErrorCode indicates the source of a failed StorageTask or operation.

Public functions

java-staticStorageException
java-staticStorageException
java-staticStorageException?
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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.