Example usage for org.apache.hadoop.yarn.webapp WebAppException WebAppException

List of usage examples for org.apache.hadoop.yarn.webapp WebAppException WebAppException

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.webapp WebAppException WebAppException.

Prototype

public WebAppException(Throwable cause) 

Source Link

Usage

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);
    }
}