Package com.qwazr.server
Interface JsonExceptionMapper<T extends java.lang.Exception>
- All Superinterfaces:
javax.ws.rs.ext.ExceptionMapper<T>
- All Known Implementing Classes:
JsonExceptionMapper.Generic
,JsonExceptionMapper.WebApplication
public interface JsonExceptionMapper<T extends java.lang.Exception>
extends javax.ws.rs.ext.ExceptionMapper<T>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
JsonExceptionMapper.Generic
static class
JsonExceptionMapper.JsonError
static class
JsonExceptionMapper.WebApplication
-
Method Summary
Modifier and Type Method Description JsonExceptionMapper.JsonError
getJsonError(long time, T exception)
java.util.logging.Logger
getLogger()
default javax.ws.rs.core.Response
toResponse(T e)
-
Method Details
-
getLogger
java.util.logging.Logger getLogger() -
getJsonError
-
toResponse
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<T extends java.lang.Exception>
-