private void cutTemplateIntoBlocks()

in gepard-core/src/main/java/com/epam/gepard/logger/LogFileWriter.java [122:138]


    private void cutTemplateIntoBlocks() {
        RE begin = null;
        RE end = null;
        try {
            begin = new RE(HTML_BLOCK_START);
            end = new RE(HTML_BLOCK_END);
        } catch (Exception e) {
            AllTestRunner.exitFromGepardWithCriticalException("\nCould not create regular expressions for extraction of template blocks", e, true,
                    ExitCode.EXIT_CODE_TEMPLATE_CANNOT_CREATE_REGULAR_EXPRESSION);
        }
        try {
            separatesBlocks(begin, end);
        } catch (IOException e) {
            AllTestRunner.exitFromGepardWithCriticalException("\nAn exception occurred during template processing:", e, true,
                    ExitCode.EXIT_CODE_TEMPLATE_OTHER_EXCEPTION);
        }
    }