Class NessieExceptionMapper

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.ExceptionMapper<java.lang.Exception>

    @Provider
    public class NessieExceptionMapper
    extends BaseExceptionMapper<java.lang.Exception>
    "Default" exception mapper implementations, mostly used to serialize the Nessie-exceptions as JSON consumable by Nessie client implementations. Does also map other, non-BaseNessieClientServerExceptions as HTTP/503 (internal server errors) with a JSON-serialized NessieError.
    • Constructor Detail

      • NessieExceptionMapper

        public NessieExceptionMapper()
      • NessieExceptionMapper

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

      • toResponse

        public jakarta.ws.rs.core.Response toResponse​(java.lang.Exception exception)