Verified Owner
Top Fields Constructors Methods
org.jabref.http.dto

public Class GlobalExceptionMapper

extends Object
implements ExceptionMapper<Throwable>
Class Inheritance
All Implemented Interfaces
jakarta.ws.rs.ext.ExceptionMapper
Annotations
@Provider
Imports
jakarta.ws.rs.WebApplicationException, jakarta.ws.rs.core.MediaType, .Response, jakarta.ws.rs.ext.ExceptionMapper, .Provider, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Response
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

GlobalExceptionMapperback to summary
public GlobalExceptionMapper()

Method Detail

toResponseback to summary
public Response toResponse(Throwable exception)

Implements jakarta.ws.rs.ext.ExceptionMapper.toResponse.

Doc from jakarta.ws.rs.ext.ExceptionMapper.toResponse.

Map an exception to a jakarta.ws.rs.core.Response. Returning null results in a jakarta.ws.rs.core.Response.Status#NO_CONTENT response. Throwing a runtime exception results in a jakarta.ws.rs.core.Response.Status#INTERNAL_SERVER_ERROR response.

Annotations
@Override