org.apache.hadoop.yarn.webapp
Class GenericExceptionHandler
java.lang.Object
org.apache.hadoop.yarn.webapp.GenericExceptionHandler
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<Exception>
@InterfaceAudience.LimitedPrivate(value={"YARN","MapReduce"})
@Provider
public class GenericExceptionHandler- extends Object
- implements javax.ws.rs.ext.ExceptionMapper<Exception>
Handle webservices jersey exceptions and create json or xml response
with the ExceptionData.
|
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
GenericExceptionHandler
public GenericExceptionHandler()
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.