@Contract @ConstrainedTo(value=SERVER) public interface ResponseErrorMapper
Response
.
Providers implementing ResponseErrorMapper
contract must be either programmatically registered in a JAX-RS runtime or
must be annotated with @Provider
annotation to be automatically discovered by the JAX-RS
runtime during a provider scanning phase.
ServerProperties.PROCESSING_RESPONSE_ERRORS_ENABLED
property has to be enabled in order to
use this contract.
Provider
,
Response
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
toResponse(Throwable throwable) |
javax.ws.rs.core.Response toResponse(Throwable throwable)
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.