org.hudsonci.rest.api.internal
Class NotFoundExceptionMapper
java.lang.Object
org.hudsonci.rest.api.internal.NotFoundExceptionMapper
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<NotFoundException>
@Provider
public class NotFoundExceptionMapper
- extends Object
- implements javax.ws.rs.ext.ExceptionMapper<NotFoundException>
Generates NOT_FOUND responses for NotFoundExceptions.
The Throwable.getMessage() is used to supply information in the response about what was not found.
- Since:
- 2.1.0
- Author:
- Peter Lynch
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotFoundExceptionMapper
public NotFoundExceptionMapper()
toResponse
public javax.ws.rs.core.Response toResponse(NotFoundException cause)
- Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<NotFoundException>
Copyright © 2004-2011 Hudson. All Rights Reserved.