@Override
  public String getMessage(){
    String errorMsg = super.getMessage() == null ? "Error" : super.getMessage();
    if (!errorMsg.contains(QUERY_ID) && queryId != null) {
      return String.format("%s; Query ID: %s", errorMsg, queryId);
    } else {
      return errorMsg;
    }
  }
Converts the specified {@link Exception} object into a {@link TStatus}
object.

@param e a {@link Exception} object
@return a {@link TStatus} object
service/src/java/org/apache/hive/service/cli/HiveSQLException.java