Class TemplateExceptionRenderer

java.lang.Object
com.peterphi.usermanager.ui.TemplateExceptionRenderer
All Implemented Interfaces:
RestFailureRenderer

public class TemplateExceptionRenderer extends Object implements RestFailureRenderer
Renders exceptions using a template
  • Field Details

    • enabled

      @Inject(optional=true) protected boolean enabled
  • Constructor Details

    • TemplateExceptionRenderer

      public TemplateExceptionRenderer()
  • Method Details

    • render

      public javax.ws.rs.core.Response render(RestFailure failure)
      Description copied from interface: RestFailureRenderer
      Allows user-defined code to present the exception in a more user-friendly manner
      Specified by:
      render in interface RestFailureRenderer
      Returns:
      a non-null Response if desired - otherwise (or if this method throws) the default exeption renderer will be used