public long getErrorCode() {
        return errorCode;
    }
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