Class MementoDatetimeFormatExceptionMapper

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

    @Provider
    public class MementoDatetimeFormatExceptionMapper
    extends Object
    implements javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.MementoDatetimeFormatException>, ExceptionDebugLogging
    Handle MementoDatetimeFormatException with HTTP 400 Bad Request.
    Since:
    2018-03-12
    Author:
    lsitu
    • Method Detail

      • toResponse

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