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