@Override
    public String toString() {
      return errorMsg;
    }
The following class represents all the error messages that are handled for aborts.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnErrorMsg.java