org.glassfish.jersey.examples.helloworld.spring
Class CustomExceptionMapper

java.lang.Object
  extended by 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)

Constructor Summary
CustomExceptionMapper()
           
 
Method Summary
 javax.ws.rs.core.Response toResponse(IllegalArgumentException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomExceptionMapper

public CustomExceptionMapper()
Method Detail

toResponse

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


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.