List of usage examples for org.apache.hadoop.yarn.webapp WebAppException WebAppException
public WebAppException(Throwable cause)
From source file:org.apache.tez.dag.app.web.AMWebController.java
License:Apache License
void sendErrorResponse(int sc, String msg, Exception e) { if (LOG.isDebugEnabled()) { LOG.debug(msg, e);/*from w ww.jav a 2 s .com*/ } try { response().sendError(sc, msg); } catch (IOException e1) { throw new WebAppException(e); } }