Class GenericExceptionHandler

java.lang.Object
org.apache.hadoop.yarn.webapp.GenericExceptionHandler
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>

@LimitedPrivate({"YARN","MapReduce"}) @Singleton @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 Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • GenericExceptionHandler

      public GenericExceptionHandler()
  • Method Details

    • toResponse

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