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 Details

    • TemplateRestCodeError

      public TemplateRestCodeError(jakarta.ws.rs.container.ContainerRequestContext requestContext, int status)
  • Method Details