Class NotFoundExceptionMapper

java.lang.Object
org.opencastproject.test.rest.NotFoundExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<org.opencastproject.util.NotFoundException>

@Provider public class NotFoundExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<org.opencastproject.util.NotFoundException>
Jersey does not map Opencast exceptions to REST exceptions. To do this, ExceptionMapper's like this has to be written. http://avianey.blogspot.ch/2011/12/exception-mapping-jersey.html
  • Constructor Details

    • NotFoundExceptionMapper

      public NotFoundExceptionMapper()
  • Method Details

    • toResponse

      public javax.ws.rs.core.Response toResponse(org.opencastproject.util.NotFoundException e)
      Specified by:
      toResponse in interface javax.ws.rs.ext.ExceptionMapper<org.opencastproject.util.NotFoundException>