Package com.dropbox.core
Class DbxWrappedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.dropbox.core.DbxWrappedException
-
- All Implemented Interfaces:
java.io.Serializable
public final class DbxWrappedException extends java.lang.Exception
For internal use only.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DbxWrappedException(java.lang.Object errValue, java.lang.String requestId, LocalizedText userMessage)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> void
executeBlockForObject(DbxGlobalCallbackFactory factory, java.lang.String userId, T routeError)
static void
executeOtherBlocks(DbxGlobalCallbackFactory factory, java.lang.String userId, java.lang.Object routeError)
static <T> DbxWrappedException
fromResponse(StoneSerializer<T> errSerializer, HttpRequestor.Response response, java.lang.String userId)
java.lang.Object
getErrorValue()
java.lang.String
getRequestId()
LocalizedText
getUserMessage()
-
-
-
Constructor Detail
-
DbxWrappedException
public DbxWrappedException(java.lang.Object errValue, java.lang.String requestId, LocalizedText userMessage)
-
-
Method Detail
-
getErrorValue
public java.lang.Object getErrorValue()
-
getRequestId
public java.lang.String getRequestId()
-
getUserMessage
public LocalizedText getUserMessage()
-
fromResponse
public static <T> DbxWrappedException fromResponse(StoneSerializer<T> errSerializer, HttpRequestor.Response response, java.lang.String userId) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
- Throws:
java.io.IOException
com.fasterxml.jackson.core.JsonParseException
-
executeOtherBlocks
public static void executeOtherBlocks(DbxGlobalCallbackFactory factory, java.lang.String userId, java.lang.Object routeError)
-
executeBlockForObject
public static <T> void executeBlockForObject(DbxGlobalCallbackFactory factory, java.lang.String userId, T routeError)
-
-