Class InvalidResourceIdentifierExceptionMapper

java.lang.Object
org.fcrepo.http.commons.exceptionhandlers.InvalidResourceIdentifierExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.InvalidResourceIdentifierException>, ExceptionDebugLogging

@Provider public class InvalidResourceIdentifierExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.InvalidResourceIdentifierException>, ExceptionDebugLogging
The class translates InvalidResourceIdentifierExceptions to its proper response code.
Since:
July 14, 2015.
Author:
awoods
  • Constructor Details

  • Method Details

    • toResponse

      public javax.ws.rs.core.Response toResponse(org.fcrepo.kernel.api.exception.InvalidResourceIdentifierException e)
      Specified by:
      toResponse in interface javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.InvalidResourceIdentifierException>
    • toResponse

      public javax.ws.rs.core.Response toResponse(String msg, org.fcrepo.kernel.api.exception.InvalidResourceIdentifierException e)