org.glassfish.jersey.examples.helloworld.spring
Class CustomExceptionMapper
java.lang.Object
org.glassfish.jersey.examples.helloworld.spring.CustomExceptionMapper
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<IllegalArgumentException>
@Provider
public class CustomExceptionMapper
- extends Object
- implements javax.ws.rs.ext.ExceptionMapper<IllegalArgumentException>
Exception mapper to convert IllegalArgumentException into a textual response.
- Author:
- Marko Asplund (marko.asplund at yahoo.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomExceptionMapper
public CustomExceptionMapper()
toResponse
public javax.ws.rs.core.Response toResponse(IllegalArgumentException exception)
- Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<IllegalArgumentException>
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.