Interface RestFailureRenderer

All Known Implementing Classes:
CustomTemplateFailureRenderer, HTMLFailureRenderer, TemplateExceptionRenderer, XMLFailureRenderer

public interface RestFailureRenderer
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    Allows user-defined code to present the exception in a more user-friendly manner
    default boolean
    Method returns true if the error is not useful to log to the application logs, and instead will be presented ephemerally to the user
  • Method Details

    • render

      javax.ws.rs.core.Response render(RestFailure failure)
      Allows user-defined code to present the exception in a more user-friendly manner
      Parameters:
      failure -
      Returns:
      a non-null Response if desired - otherwise (or if this method throws) the default exeption renderer will be used
    • shouldSuppressLog

      default boolean shouldSuppressLog(RestFailure failure)
      Method returns true if the error is not useful to log to the application logs, and instead will be presented ephemerally to the user
      Parameters:
      failure -
      Returns: