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
 javax.ws.rs.ext.ExceptionMapper find(java.lang.Class<? extends java.lang.Throwable> c)
          Find an exception mapper for a class of throwable that is capable of converting a throwable to a response.
 

Method Detail

find

javax.ws.rs.ext.ExceptionMapper find(java.lang.Class<? extends java.lang.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 © 2011 Sun Microsystems, Inc. All Rights Reserved.