public class

StorageException

extends FirebaseException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.google.firebase.FirebaseException
         ↳ com.google.firebase.storage.StorageException

Class Overview

Represents an Exception resulting from an operation on a StorageReference.

Summary

Nested Classes
@interface StorageException.ErrorCode An StorageException.ErrorCode indicates the source of a failed StorageTask or operation. 
Constants
int ERROR_BUCKET_NOT_FOUND
int ERROR_CANCELED
int ERROR_INVALID_CHECKSUM
int ERROR_NOT_AUTHENTICATED
int ERROR_NOT_AUTHORIZED
int ERROR_OBJECT_NOT_FOUND
int ERROR_PROJECT_NOT_FOUND
int ERROR_QUOTA_EXCEEDED
int ERROR_RETRY_LIMIT_EXCEEDED
int ERROR_UNKNOWN
Public Methods
static StorageException fromErrorStatus(Status status)
static StorageException fromException(Throwable exception)
static StorageException fromExceptionAndHttpCode(Throwable exception, int httpResultCode)
Throwable getCause()
Returns the cause of this Throwable, or null if there is no cause.
int getErrorCode()
int getHttpResultCode()
boolean getIsRecoverableException()
String getMessage()
Returns the detail message which was provided when this Throwable was created.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Constants

public static final int ERROR_BUCKET_NOT_FOUND

Constant Value: -13011 (0xffffcd2d)

public static final int ERROR_CANCELED

Constant Value: -13040 (0xffffcd10)

public static final int ERROR_INVALID_CHECKSUM

Constant Value: -13031 (0xffffcd19)

public static final int ERROR_NOT_AUTHENTICATED

Constant Value: -13020 (0xffffcd24)

public static final int ERROR_NOT_AUTHORIZED

Constant Value: -13021 (0xffffcd23)

public static final int ERROR_OBJECT_NOT_FOUND

Constant Value: -13010 (0xffffcd2e)

public static final int ERROR_PROJECT_NOT_FOUND

Constant Value: -13012 (0xffffcd2c)

public static final int ERROR_QUOTA_EXCEEDED

Constant Value: -13013 (0xffffcd2b)

public static final int ERROR_RETRY_LIMIT_EXCEEDED

Constant Value: -13030 (0xffffcd1a)

public static final int ERROR_UNKNOWN

Constant Value: -13000 (0xffffcd38)

Public Methods

public static StorageException fromErrorStatus (Status status)

Parameters
status Status
Returns
StorageException

public static StorageException fromException (Throwable exception)

Parameters
exception Throwable
Returns
StorageException

public static StorageException fromExceptionAndHttpCode (Throwable exception, int httpResultCode)

Parameters
exception Throwable
httpResultCode int
Returns
StorageException

public Throwable getCause ()

Returns the cause of this Throwable, or null if there is no cause.

Returns
Throwable

public int getErrorCode ()

Returns
int

public int getHttpResultCode ()

Returns
int the Http result code (if one exists) from a network operation.

public boolean getIsRecoverableException ()

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

public String getMessage ()

Returns the detail message which was provided when this Throwable was created. Returns null if no message was provided at creation time.

Returns
String