|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lmax.api.FailureResponse
public class FailureResponse
Generic failure response for outbound requests.
Constructor Summary | |
---|---|
FailureResponse(boolean isSystemFailure,
java.lang.String message)
Constructs a failure response. |
|
FailureResponse(java.lang.Exception e)
Constructs a failure response as a result of an exception being caught. |
|
FailureResponse(java.lang.String message,
java.lang.String description)
Constructs a failure response. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
More detailed description of the failure response, may not be set depending on the nature of the failure. |
java.lang.Exception |
getException()
Returns an exception that may have occurred. |
java.lang.String |
getMessage()
Get the failure message. |
boolean |
isSystemFailure()
Indicates that the failure was system related. |
java.lang.String |
toString()
Get the FailureResponse as a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FailureResponse(java.lang.String message, java.lang.String description)
message
- The failure messagedescription
- Readable description of the errorpublic FailureResponse(boolean isSystemFailure, java.lang.String message)
isSystemFailure
- Indicates a system failuremessage
- The failure messagepublic FailureResponse(java.lang.Exception e)
e
- The captured exceptionMethod Detail |
---|
public java.lang.String getMessage()
public java.lang.String getDescription()
public boolean isSystemFailure()
public java.lang.Exception getException()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |