de.twenty11.skysail.common.responses
Class FailureResponse<T>
java.lang.Object
de.twenty11.skysail.common.responses.Response<T>
de.twenty11.skysail.common.responses.FailureResponse<T>
- Type Parameters:
T -
public class FailureResponse<T>
- extends Response<T>
Message to be send to the client in case of an error.
- Author:
- carsten
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FailureResponse
public FailureResponse()
- standard constructor.
Needed for reflection.
FailureResponse
public FailureResponse(String message)
- Constructor taking a message.
- Parameters:
message - the provided message
FailureResponse
public 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.
- Parameters:
e - the passed exception TODO for 0.2.0 let method accept string
instead of exception
FailureResponse
public FailureResponse(T constraintViolations)
Copyright © 2011-2012. All Rights Reserved.