Package cli_fmw.main

Examples of cli_fmw.main.ClipsException


                clearBean();
                String title;
                try {
                    title = bean().getResultTitle(id);
                } catch (ClipsServerException ex1) {
                    throw new ClipsException("Не удалось получить название параметра конфигурации", ex1);
                }
                throw new ClipsException("Не удалось получить параметр конфигурации "
                        + id + ", " + title + ".", ex);
            }
            values.put(id, value);
            valuesOriginal.put(id, value);
        }
View Full Code Here


        }
        return  values.get(id);
    }

    protected void setCode(int id, Object object) throws ClipsException {
        if (object == null) throw new ClipsException("значение параметра не можект быть null");
        if (valuesOriginal.get(id) == null){
            Object value;
            try {
                value = bean().getParametr(bean().getResultType(id), id);
            } catch (Exception ex) {
                clearBean();
                String title;
                try {
                    title = bean().getResultTitle(id);
                } catch (ClipsServerException ex1) {
                    throw new ClipsException("Не удалось получить название параметра конфигурации", ex1);
                }
                throw new ClipsException("Не удалось назначить " + title, ex);
            }
            valuesOriginal.put(id, value);
        }
        values.put(id, object);
        fireContentStateEvent();
View Full Code Here

            }
            valuesOriginal = new HashMap<Integer, Object>(values);
            fireContentStateEvent();
        } catch (Exception ex) {
            clearBean();
            throw new ClipsException("Не удалось сохранить текущую конфигурацию", ex);
        }
    }
View Full Code Here

            try {
                saveDB();
                getCache().commit();
            } catch (Exception ex) {
                clearBean();
                throw new ClipsException("Не удалось сохранить ...", ex);
            }
        }
    }
View Full Code Here

            try {
                saveDB();
                getCache().commit();
            } catch (Exception ex) {
                clearBean();
                throw new ClipsException("Не удалось сохранить ...", ex);
            }
        }
    }
View Full Code Here

                s += MessageBox.parseException(ex) + "\n";
            }
        }
       
        if (!s.isEmpty()) {
            throw new ClipsException(s, e);
        }
    }
View Full Code Here


    void checkModify() throws ClipsException{
        if (! UserInfoAbstract.get().isSuperUser()){
            if (!csl.canModify()){
                throw new ClipsException("У вас нет прав для изменения объекта " + csl.toStringSimple());
            }
        }
    }
View Full Code Here

        }
    }

    void checkRead() throws ClipsException{
        if (UserInfoAbstract.get() == null) {
            throw new ClipsException("Сессия не зарегистрирована");
        }
        if (! UserInfoAbstract.get().isSuperUser()){
            if (csl.isNewlyCreated()){
                if (!csl.canCreate()){
                    throw new ClipsException("У вас нет прав для создания объекта " + csl.toStringSimple());
                }
            }
            if (!csl.canRead()){
                throw new ClipsException("У вас нет прав на чтение объекта " + csl.toStringSimple());
            }
        }
    }
View Full Code Here

    public TYPE get() throws ClipsException {
        if(!cache.inCache()) {
            try {
                cache.set(init());
            } catch (Exception ex) {
                throw new ClipsException("Не удалось получить " + readableException, ex);
            }
        }
        return cache.get();
    }
View Full Code Here

                    line = line.trim();
                }
                currentType = IWTypeMap.get(line.toLowerCase());
                System.out.println("TYPE: " + line);
                if (currentType == null){ //if type not found - exception
                    throw new ClipsException("Not found IntelliWriter type: " + line);
                }
            }else{//text
               
                if (currentType == null){
                    throw new ClipsException("IntelliWriter type not set!");
                }else{
               
                    if (line.length() > 2 && line.charAt(0) == '/' && line.charAt(1) == '/'){//comment
                        System.out.println("COMMENT: "+ line);
                    }else{//may be item
View Full Code Here

TOP

Related Classes of cli_fmw.main.ClipsException

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.