com.sun.jersey.spi.container
Interface ExceptionMapperContext

All Known Implementing Classes:
ExceptionMapperFactory

public interface ExceptionMapperContext

Provides lookup of ExceptionMapper instances that can be used to map exceptions to responses.

Author:
Paul.Sandoz@Sun.Com

Method Summary
 ExceptionMapper find(Class<? extends Throwable> c)
          Find an exception mapper for a class of throwable that is capable of converting a throwable to a response.
 

Method Detail

find

ExceptionMapper find(Class<? extends Throwable> c)
Find an exception mapper for a class of throwable that is capable of converting a throwable to a response.

Parameters:
c - the throwable class.
Returns:
the exception mapper, otherwise null.


Copyright © 2013 Oracle Corporation. All Rights Reserved.