Class TemplateRestCodeError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.ws.rs.WebApplicationException
-
- ru.vyarus.guicey.gsp.app.rest.support.TemplateRestCodeError
-
- All Implemented Interfaces:
java.io.Serializable,TracelessException
public class TemplateRestCodeError extends javax.ws.rs.WebApplicationException implements TracelessException
Exception indicates error processing template handling rest call, when resource directly return non 200 code (e.g.Response.status(403).build()) instead of exception.Custom exception type used only to simplify direct no OK status error detection (differentiate from exceptions, because in this case it is impossible to see exception origin in stack trace).
- Since:
- 29.01.2019
- See Also:
TemplateErrorResponseFilter, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemplateRestCodeError(javax.ws.rs.container.ContainerRequestContext requestContext, int status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStatus()
-
-
-
Method Detail
-
getStatus
public int getStatus()
- Specified by:
getStatusin interfaceTracelessException
-
-