net.stepniak.api.response.exception
Class BaseExceptionMapper
java.lang.Object
net.stepniak.api.response.exception.BaseExceptionMapper
- Direct Known Subclasses:
- BadRequestExceptionMapper, EntityNotFoundMapper, ForbiddenExceptionMapper, HttpsRequiredExceptionMapper, InternalServerExceptionMapper, MethodNotAllowedExceptionMapper, NoSuchAlgorithmExceptionMapper, NoSuchMethodExceptionMapper, NotAuthorizedExceptionMapper, NotFoundExceptionMapper, RuntimeExceptionMapper, ThrowableExceptionMapper, UnsupportedMediaTypeExceptionMapper
public class BaseExceptionMapper
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseExceptionMapper
public BaseExceptionMapper()
getJsonMapper
public static net.stepniak.api.json.JsonMapper getJsonMapper()
getLogMessage
protected StringBuilder getLogMessage(javax.ws.rs.core.UriInfo uriInfo,
Throwable cause)
prepareResponse
protected javax.ws.rs.core.Response prepareResponse(net.stepniak.common.error.http.ServerBaseException exception)
prepareInternalErrorResponse
protected javax.ws.rs.core.Response prepareInternalErrorResponse(Throwable exception)
Copyright © 2013. All Rights Reserved.