Interface RestFailureRenderer
- All Known Implementing Classes:
CustomTemplateFailureRenderer
,HTMLFailureRenderer
,TemplateExceptionRenderer
,XMLFailureRenderer
public interface RestFailureRenderer
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
render
(RestFailure failure) Allows user-defined code to present the exception in a more user-friendly mannerdefault 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
-
Method Details
-
render
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
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:
-