Class ErrorMixin

java.lang.Object
org.apache.juneau.rest.server.servlet.RestMixin
org.apache.juneau.rest.server.ops.ErrorMixin

public class ErrorMixin extends RestMixin
Mixin providing the residual [* /error] endpoint.

Single-responsibility op-mixin carved out of the former BasicRestOperations interface. Compose into a host via @Rest(mixins=ErrorMixin.class); the BasicRestServlet family pulls it in by default.

Servlet chains often redirect to /error when an error condition occurs (such as failed authentication) and set appropriate response parameters (such as a WWW-Authenticate header).

Since:
10.0.0
  • Constructor Details

  • Method Details

    • error

      public void error()
      [* /error] - Error occurred.