presto-spi/src/main/java/io/prestosql/spi/ErrorCode.java/ErrorCode/equals
class ErrorCode:    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }

        ErrorCode that = (ErrorCode) obj;
        return Objects.equals(this.code, that.code);
    }