Class ResteasyExceptionMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<org.jboss.resteasy.api.validation.ResteasyViolationException>

    @Provider
    public class ResteasyExceptionMapper
    extends org.projectnessie.services.rest.BaseExceptionMapper<org.jboss.resteasy.api.validation.ResteasyViolationException>
    "Special" implementation for exceptions that extend ValidationException, as those do not "go through" NessieExceptionMapper and there need to be two ExceptionMapper beans for the Nessie-server.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response toResponse​(org.jboss.resteasy.api.validation.ResteasyViolationException exception)  
      protected static java.lang.String unwrapException​(java.lang.Throwable t)  
      • Methods inherited from class org.projectnessie.services.rest.BaseExceptionMapper

        buildBadRequestResponse, buildExceptionResponse, buildExceptionResponse
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResteasyExceptionMapper

        public ResteasyExceptionMapper()
      • ResteasyExceptionMapper

        @Inject
        public ResteasyExceptionMapper​(org.projectnessie.services.config.ServerConfig config)
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(org.jboss.resteasy.api.validation.ResteasyViolationException exception)
      • unwrapException

        protected static java.lang.String unwrapException​(java.lang.Throwable t)