Class PreconditionExceptionMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.PreconditionException>, ExceptionDebugLogging

    @Provider
    public class PreconditionExceptionMapper
    extends Object
    implements javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.PreconditionException>, ExceptionDebugLogging
    Maps PreconditionException to an appropriate http response.
    Since:
    Jun 22, 2017
    Author:
    Daniel Bernstein
    • Method Detail

      • toResponse

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