org.apache.hadoop.hdfs.web.resources
Class ExceptionHandler

java.lang.Object
  extended by org.apache.hadoop.hdfs.web.resources.ExceptionHandler
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>

@Provider
public class ExceptionHandler
extends Object
implements javax.ws.rs.ext.ExceptionMapper<Exception>

Handle exceptions.


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
ExceptionHandler()
           
 
Method Summary
 javax.ws.rs.core.Response toResponse(Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

ExceptionHandler

public ExceptionHandler()
Method Detail

toResponse

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.