Package net.anotheria.anosite.handler
Class ResponseAbort
- java.lang.Object
-
- net.anotheria.anosite.handler.BoxHandlerResponse
-
- net.anotheria.anosite.handler.ResponseAbort
-
public class ResponseAbort extends BoxHandlerResponse
Commands the called to abort the execution. This usually happens if the execution encountered and exception.- Author:
- lrosenberg
-
-
Constructor Summary
Constructors Constructor Description ResponseAbort()Creates a new abort response.ResponseAbort(Exception aCause)Creates a new abort response with the given code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptiongetCause()Returns the cause of the abort (i.e.StringgetCauseMessage()Returns the exception's message or null.InternalResponseCodegetResponseCode()Returns the response code of the response.-
Methods inherited from class net.anotheria.anosite.handler.BoxHandlerResponse
toString
-
-
-
-
Constructor Detail
-
ResponseAbort
public ResponseAbort()
Creates a new abort response.
-
ResponseAbort
public ResponseAbort(Exception aCause)
Creates a new abort response with the given code.- Parameters:
aCause- source exception.
-
-
Method Detail
-
getResponseCode
public InternalResponseCode getResponseCode()
Description copied from class:BoxHandlerResponseReturns the response code of the response. Classes react on the response accordingly to the response code.- Specified by:
getResponseCodein classBoxHandlerResponse- Returns:
- the response code.
-
getCause
public Exception getCause()
Returns the cause of the abort (i.e. the exception).- Returns:
- cause of the InternalError.
-
getCauseMessage
public String getCauseMessage()
Returns the exception's message or null.- Returns:
- original cause message.
-
-