com.veriplace.client.util
Class ResultWrapper<T>
java.lang.Object
com.veriplace.client.util.ResultWrapper<T>
- Type Parameters:
T - type of the result object
public class ResultWrapper<T>
- extends java.lang.Object
Stores a result object if the request succeeded, or an exception if it failed.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultWrapper
public ResultWrapper(T result,
Token token)
ResultWrapper
public ResultWrapper(VeriplaceException exception)
ResultWrapper
protected ResultWrapper(T result,
Token token,
VeriplaceException exception)
getResult
public T getResult()
getException
public VeriplaceException getException()
getToken
public Token getToken()