Package org.projectnessie.services.rest
Class NessieExceptionMapper
- java.lang.Object
-
- org.projectnessie.services.rest.BaseExceptionMapper<Exception>
-
- org.projectnessie.services.rest.NessieExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>
@Provider public class NessieExceptionMapper extends BaseExceptionMapper<Exception>
"Default" exception mapper implementations, mostly used to serialize theNessie-exceptionsas JSON consumable by Nessie client implementations. Does also map other, non-BaseNessieClientServerExceptions as HTTP/503 (internal server errors) with a JSON-serializedNessieError.
-
-
Constructor Summary
Constructors Constructor Description NessieExceptionMapper()NessieExceptionMapper(ServerConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsetoResponse(Exception exception)-
Methods inherited from class org.projectnessie.services.rest.BaseExceptionMapper
buildExceptionResponse, buildExceptionResponse
-
-
-
-
Constructor Detail
-
NessieExceptionMapper
public NessieExceptionMapper()
-
NessieExceptionMapper
@Inject public NessieExceptionMapper(ServerConfig config)
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(Exception exception)
-
-