net.stepniak.api.response.exception.persistance
Class EntityNotFoundMapper

java.lang.Object
  extended by net.stepniak.api.response.exception.BaseExceptionMapper
      extended by net.stepniak.api.response.exception.persistance.EntityNotFoundMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<javax.persistence.EntityNotFoundException>

@Provider
public class EntityNotFoundMapper
extends BaseExceptionMapper
implements javax.ws.rs.ext.ExceptionMapper<javax.persistence.EntityNotFoundException>


Constructor Summary
EntityNotFoundMapper()
           
 
Method Summary
 javax.ws.rs.core.Response toResponse(javax.persistence.EntityNotFoundException exception)
           
 
Methods inherited from class net.stepniak.api.response.exception.BaseExceptionMapper
getJsonMapper, getLogMessage, prepareInternalErrorResponse, prepareResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityNotFoundMapper

public EntityNotFoundMapper()
Method Detail

toResponse

public javax.ws.rs.core.Response toResponse(javax.persistence.EntityNotFoundException exception)
Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<javax.persistence.EntityNotFoundException>


Copyright © 2013. All Rights Reserved.