StorageException

public class StorageException extends FirebaseException

Represents an Exception resulting from an operation on a StorageReference.

Nested Class Summary

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

Constant Summary

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 Method Summary

static StorageException
static StorageException
static StorageException
fromExceptionAndHttpCode(Throwable exception, int httpResultCode)
Throwable
getCause()
Returns the cause of this Throwable, or null if there is no cause.
int
int
boolean
String
getMessage()
Returns the detail message which was provided when this Throwable was created.

Inherited Method Summary

Constants

public static final int ERROR_BUCKET_NOT_FOUND

Constant Value: -13011

public static final int ERROR_CANCELED

Constant Value: -13040

public static final int ERROR_INVALID_CHECKSUM

Constant Value: -13031

public static final int ERROR_NOT_AUTHENTICATED

Constant Value: -13020

public static final int ERROR_NOT_AUTHORIZED

Constant Value: -13021

public static final int ERROR_OBJECT_NOT_FOUND

Constant Value: -13010

public static final int ERROR_PROJECT_NOT_FOUND

Constant Value: -13012

public static final int ERROR_QUOTA_EXCEEDED

Constant Value: -13013

public static final int ERROR_RETRY_LIMIT_EXCEEDED

Constant Value: -13030

public static final int ERROR_UNKNOWN

Constant Value: -13000

Public Methods

public static StorageException fromErrorStatus (Status status)

public static StorageException fromException (Throwable exception)

public static StorageException fromExceptionAndHttpCode (Throwable exception, int httpResultCode)

public Throwable getCause ()

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

public int getErrorCode ()

public int getHttpResultCode ()

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

public boolean getIsRecoverableException ()

Returns
  • 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.