Package org.actioncontroller.values.json
Class JsonHttpActionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.actioncontroller.exceptions.HttpActionException
-
- org.actioncontroller.values.json.JsonHttpActionException
-
- All Implemented Interfaces:
Serializable
public class JsonHttpActionException extends HttpActionException
Used to return a JsonObject to the user agent along with an error status code- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonHttpActionException(int errorCode, String message, org.jsonbuddy.JsonNode json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendError(ApiHttpExchange exchange)-
Methods inherited from class org.actioncontroller.exceptions.HttpActionException
getStatusCode, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
JsonHttpActionException
public JsonHttpActionException(int errorCode, String message, org.jsonbuddy.JsonNode json)
-
-
Method Detail
-
sendError
public void sendError(ApiHttpExchange exchange) throws IOException
- Overrides:
sendErrorin classHttpActionException- Throws:
IOException
-
-