public class FailureResponse<T> extends SkysailResponse<T>
| Constructor and Description |
|---|
FailureResponse()
standard constructor.
|
FailureResponse(Exception e)
make sure to handle the exception properly (logging etc) before calling this method - this will only create a
response to the caller with the errors message, and no more details.
|
FailureResponse(String message)
Constructor taking a message.
|
| Modifier and Type | Method and Description |
|---|---|
Exception |
getException() |
getData, getExecutionTime, getMessage, getPresentationStyleHint, getServerLoad, getSuccess, setData, setExecutionTime, setMessage, setPresentationStyleHint, setServerLoad, setSuccesspublic FailureResponse()
public FailureResponse(String message)
message - the provided messagepublic FailureResponse(Exception e)
e - the passed exception TODO for 0.2.0 let method accept string instead of exceptionpublic Exception getException()
Copyright © 2011-2013. All Rights Reserved.