presto-thrift/src/main/java/io/prestosql/plugin/thrift/ThriftErrorCode.java/ThriftErrorCode/toErrorCode
class ThriftErrorCode:    @Override
    public ErrorCode toErrorCode()
    {
        return errorCode;
    }