public static ErrorMessage createSearchReplyError(String detailedMessage) {
        return new ErrorMessage(RESULT_HAS_ERRORS.code, "Error in search reply.", detailedMessage);
    }
Wraps an error message received in a SearchReply packet
container-search/src/main/java/com/yahoo/search/result/ErrorMessage.java