Package reportgen.utils

Examples of reportgen.utils.ReportException


    public CoresList(RemoveChecker outer, Element root, Context context)
            throws ReportException {
        super(outer, root, context);
        if(size() == 0) {
            throw new ReportException("Не найдено ядро отчета");
        }
    }
View Full Code Here


        try {
            CoreColumnList cols = cores.get(0).getColumns();
            for(int i=1; i<cores.size(); i++) {
                QCore core = cores.get(i);
                if(core.getColumns().size() != cols.size()) {
                    throw new ReportException("Выборки отличаются количеством результатов");
                }
            }
            ResultColumnList results = query.getColumns();
            for(int j=0; j<cols.size(); j++) {
                QueryResultColumn col = cols.get(j);
View Full Code Here

    @Override
    public void validate() throws ReportException {
        super.validate();
        if(crossReport == null) {
            throw new ReportException("Не задан кросс-отчет");
        }
        crossCriteria.validate();
    }
View Full Code Here

    private static Element parseXML(String xml) throws ReportException {
        try {
            return new SAXBuilder().build(new StringReader(xml)).getRootElement();
        } catch (Exception ex) {
            throw new ReportException("Ошибка в структуре патча.", ex);
        }
    }
View Full Code Here

        for(Object child: children) {
            RegexElement item = new RegexElement((Element) child);
            result.add(item);
        }
        if(result.isEmpty()) {
            throw new ReportException("Патч пуст.");
        }
        return result;
    }
View Full Code Here

    public RegexElement(Element root) throws ReportException {
        from = getChildrenText(root, REGEX_FROM);
        to = getChildrenText(root, REGEX_TO);
        if(from.length() == 0) {
            throw new ReportException("Ошибка в содержимом патча.");
        }
        flags = new RegexFlags(root);
    }
View Full Code Here

    @Override
    protected void onRemove(ColRowRange value) throws ReportException {
        super.onRemove(value);
        if(value.getInner().size() > 0) {
            throw new ReportException("Сначала нужно удалить все дочерние диапазоны");
        }
        for (ColRowRange c : getList()) {
            if (c == value) {
                continue;
            }
View Full Code Here

    }

    @Override
    public void validate() throws ReportException {
        if(col == null) {
            throw new ReportException("Не выбран тип объекта");
        }
    }
View Full Code Here

        }
    }

    @Override
    public void appendToQuery(SQLStream sql, Map model) throws ReportException {
        throw new ReportException("Illegal use MathExpressionColumnRef");
    }
View Full Code Here

        try {
            Iterator it = children.iterator();
            while(it.hasNext()) {
                Element option = (Element) it.next();
                if(option.getTextTrim().length() == 0) {
                    throw new ReportException("Пустой элемент " + OPTION);
                }
                value.add(parseString(option.getText()));
            }
        } catch(ReportException ex) {
            throw ex;
        } catch (Exception ex) {
            throw new ReportException("Ошибка при распозновании константы: " + ex.getLocalizedMessage());
        }
    }
View Full Code Here

TOP

Related Classes of reportgen.utils.ReportException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.