Class TemplateRestCodeError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.ws.rs.WebApplicationException
ru.vyarus.guicey.gsp.app.rest.support.TemplateRestCodeError
- All Implemented Interfaces:
Serializable,TracelessException
public class TemplateRestCodeError
extends jakarta.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:
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateRestCodeError(jakarta.ws.rs.container.ContainerRequestContext requestContext, int status) -
Method Summary
Methods inherited from class jakarta.ws.rs.WebApplicationException
getResponseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TemplateRestCodeError
public TemplateRestCodeError(jakarta.ws.rs.container.ContainerRequestContext requestContext, int status)
-
-
Method Details
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceTracelessException
-