@Override
  public String toString() {
    return "(responseCode = " + responseCode + ", errorMessage = " + getMessage() + ", "
        + (hiveErrorCode > 0 ? "hiveErrorCode = " + hiveErrorCode + ", " : "") + "SQLState = " + sqlState
        + (getCause() == null ? "" : ", exception = " + getCause().getMessage()) + ")";
  }
Exception thrown during command processing class.
ql/src/java/org/apache/hadoop/hive/ql/processors/CommandProcessorException.java