com.sun.jersey.server.impl.ejb
Class EJBExceptionMapper

java.lang.Object
  extended by com.sun.jersey.server.impl.ejb.EJBExceptionMapper
All Implemented Interfaces:
ExceptionMapper<javax.ejb.EJBException>

public class EJBExceptionMapper
extends Object
implements ExceptionMapper<javax.ejb.EJBException>

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
EJBExceptionMapper(Providers providers)
           
 
Method Summary
 Response toResponse(javax.ejb.EJBException exception)
          Map an exception to a Response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBExceptionMapper

public EJBExceptionMapper(@Context
                          Providers providers)
Method Detail

toResponse

public Response toResponse(javax.ejb.EJBException exception)
Description copied from interface: ExceptionMapper
Map an exception to a Response. Returning null results in a Response.Status.NO_CONTENT response. Throwing a runtime exception results in a Response.Status.INTERNAL_SERVER_ERROR response

Specified by:
toResponse in interface ExceptionMapper<javax.ejb.EJBException>
Parameters:
exception - the exception to map to a response
Returns:
a response mapped from the supplied exception


Copyright © 2013 Oracle Corporation. All Rights Reserved.