Class Overview
Represents an Exception resulting from an operation on a StorageReference.
TODO(benwu): request FirebaseException ctor(message, inner).
Summary
| Nested Classes |
|
@interface |
StorageException.ErrorCode |
An StorageException.ErrorCode indicates the source of a failed StorageTask or operation. |
|
[Expand]
Inherited Methods |
From class
java.lang.Throwable
|
final
void
|
addSuppressed(Throwable arg0)
|
|
Throwable
|
fillInStackTrace()
|
|
Throwable
|
getCause()
|
|
String
|
getLocalizedMessage()
|
|
String
|
getMessage()
|
|
StackTraceElement[]
|
getStackTrace()
|
|
final
Throwable[]
|
getSuppressed()
|
|
Throwable
|
initCause(Throwable arg0)
|
|
void
|
printStackTrace()
|
|
void
|
printStackTrace(PrintWriter arg0)
|
|
void
|
printStackTrace(PrintStream arg0)
|
|
void
|
setStackTrace(StackTraceElement[] arg0)
|
|
String
|
toString()
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait()
|
|
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
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.