Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * The contents of this file are subject to the terms
  * of the Common Development and Distribution License
  * (the "License").  You may not use this file except
  * in compliance with the License.
  * You can obtain a copy of the license at
  * See the License for the specific language governing
 * permissions and limitations under the License.
Contract for a provider that maps Java exceptions to An implementation of this interface must be annotated with Provider.

public interface ExceptionMapper<E extends Throwable> {

Map an exception to a Returning null results in a response. Throwing a runtime exception results in a response

exception the exception to map to a response
a response mapped from the supplied exception
    Response toResponse(E exception);
New to GrepCode? Check out our FAQ X