Package com.dropbox.core
Class DbxException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.dropbox.core.DbxException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AccessErrorException
,DbxApiException
,DbxOAuthException
,DropboxParseException
,DropboxUidNotInitializedException
,InvalidAccessTokenException
,NetworkIOException
,PathRootErrorException
,ProtocolException
,RetryException
,ServerException
public class DbxException extends java.lang.Exception
The base exception thrown by Dropbox API calls. Normally, you'll need to do something specific forInvalidAccessTokenException
and possibly forRetryException
. The rest you should probably just log and investigate manually.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DbxException(java.lang.String message)
DbxException(java.lang.String requestId, java.lang.String message)
DbxException(java.lang.String requestId, java.lang.String message, java.lang.Throwable cause)
DbxException(java.lang.String message, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getRequestId()
Return the unique ID associated with the request that triggered this exception.
-
-
-
Constructor Detail
-
DbxException
public DbxException(java.lang.String message)
-
DbxException
public DbxException(java.lang.String requestId, java.lang.String message)
-
DbxException
public DbxException(java.lang.String message, java.lang.Throwable cause)
-
DbxException
public DbxException(java.lang.String requestId, java.lang.String message, java.lang.Throwable cause)
-
-
Method Detail
-
getRequestId
public java.lang.String getRequestId()
Return the unique ID associated with the request that triggered this exception.The ID may be
null
if we could not receive a response from the Dropbox servers (e.g. from aNetworkIOException
).Please use this ID when filing bug reports.
- Returns:
- unique ID associated with the request that caused this exception, or
null
if one is not available.
-
-