Class TemplateRestCodeError

  • All Implemented Interfaces:
    java.io.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:
    TemplateErrorResponseFilter, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TemplateRestCodeError​(jakarta.ws.rs.container.ContainerRequestContext requestContext, int status)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStatus()  
      • Methods inherited from class jakarta.ws.rs.WebApplicationException

        getResponse
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TemplateRestCodeError

        public TemplateRestCodeError​(jakarta.ws.rs.container.ContainerRequestContext requestContext,
                                     int status)