T - public class FailureResponse<T> extends Response<T>
validationViolations| 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.
|
FailureResponse(T constraintViolations) |
getData, getMessage, getNavigation, getSuccess, getValidationViolations, setData, setMessage, setNavigation, setSuccess, setValidationViolationspublic 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 FailureResponse(T constraintViolations)
Copyright © 2011-2013. All Rights Reserved.