Package org.cyclos.model.utils
Class ResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.cyclos.model.CyclosException
-
- org.cyclos.model.BusinessException
-
- org.cyclos.model.utils.ResponseException
-
- All Implemented Interfaces:
Serializable
public class ResponseException extends BusinessException
Exception thrown when aResponseInfois expected, and we want to rollback the transaction. This is specially useful for custom web services.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResponseException()ResponseException(int statusCode)ResponseException(int statusCode, String stringBody)ResponseException(ResponseInfo response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseInfogetResponse()voidsetResponse(ResponseInfo response)-
Methods inherited from class org.cyclos.model.CyclosException
getAttribute, getMessage, setAttribute, shouldGenerateLog
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ResponseException
public ResponseException()
-
ResponseException
public ResponseException(int statusCode)
-
ResponseException
public ResponseException(int statusCode, String stringBody)
-
ResponseException
public ResponseException(ResponseInfo response)
-
-
Method Detail
-
getResponse
public ResponseInfo getResponse()
-
setResponse
public void setResponse(ResponseInfo response)
-
-