/** * Returns the default list of {@link ApiExceptionHandlerListener}s that should work for most applications without * any further additions. */ public static List<ApiExceptionHandlerListener> defaultHandlerListeners(ProjectApiErrors projectApiErrors, ApiExceptionHandlerUtils utils) { return Arrays.asList(new GenericApiExceptionHandlerListener(), new ServersideValidationErrorHandlerListener(projectApiErrors, utils), new ClientDataValidationErrorHandlerListener(projectApiErrors, utils), new DownstreamNetworkExceptionHandlerListener(projectApiErrors), new BackstopperRiposteFrameworkErrorHandlerListener(projectApiErrors)); }
/** * @return The basic set of handler listeners that are appropriate for most JAX-RS applications. */ public static List<ApiExceptionHandlerListener> defaultApiExceptionHandlerListeners( ProjectApiErrors projectApiErrors, ApiExceptionHandlerUtils utils ) { return Arrays.asList( new GenericApiExceptionHandlerListener(), new ServersideValidationErrorHandlerListener(projectApiErrors, utils), new ClientDataValidationErrorHandlerListener(projectApiErrors, utils), new DownstreamNetworkExceptionHandlerListener(projectApiErrors), new JaxRsWebApplicationExceptionHandlerListener(projectApiErrors, utils)); }