Package edu.wisc.game.web
Class ResponseBase
- java.lang.Object
-
- edu.wisc.game.web.ResponseBase
-
- Direct Known Subclasses:
ArithmeticResult
public class ResponseBase extends Object
The base of all response objects returned by our REST API methods
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringexceptionTrace()StringgetErrmsg()booleangetError()ExceptiongetEx()protected voidgiveError(String msg)Sets the error flag and the error messagevoidsetErrmsg(String _errmsg)voidsetError(boolean _error)
-
-
-
Method Detail
-
getError
public boolean getError()
-
setError
public void setError(boolean _error)
-
getErrmsg
public String getErrmsg()
-
setErrmsg
public void setErrmsg(String _errmsg)
-
giveError
protected void giveError(String msg)
Sets the error flag and the error message
-
getEx
public Exception getEx()
-
exceptionTrace
public String exceptionTrace()
-
-