Package org.brixcms.exception

Examples of org.brixcms.exception.BrixException


                            brix.initWorkspace(ManageSnapshotsPanel.this.getModelObject(), session);

                            getSession().info(ManageSnapshotsPanel.this.getString("restoreSuccessful"));
                        } catch (IOException e) {
                            throw new BrixException(e);
                        }
                    }
                }
            }
        });
View Full Code Here


            if (p instanceof BrixNodeWebPage) {
                page = (BrixNodeWebPage) p;
            }
        }
        if (page == null) {
            throw new BrixException("Couldn't obtain the BrixNodeWebPage instance from RequestTarget.");
        }
        return page;
    }
View Full Code Here

    public void handleException(Exception e) {
        if (e instanceof RepositoryException) {
            throw new JcrException((RepositoryException) e);
        } else {
            throw new BrixException(e);
        }
    }
View Full Code Here

            if (p instanceof BrixNodeWebPage) {
                page = (BrixNodeWebPage) p;
            }
        }
        if (page == null) {
            throw new BrixException(
                    "Couldn't obtain the BrixNodeWebPage instance from RequestTarget.");
        }
        return page;
    }
View Full Code Here

        AbstractContainer n = node;
        while ((n = (AbstractContainer) n.getTemplate()) != null) {
            if (nodes.contains(n)) {
                // TODO: Do something nicer
                throw new BrixException("Loop detected.");
            }
            nodes.add(0, n);
        }

        parseNode(nodes, 0, items);
View Full Code Here

                } else if (cursor instanceof Text) {
                    items.add(new SimpleText(cursor.toHtml()));
                } else if (cursor instanceof org.htmlparser.Tag) {
                    processTag(nodes, current, items, (org.htmlparser.Tag) cursor);
                } else {
                    throw new BrixException("Unknown node type " + cursor.getClass().getName());
                }
            }
        }
        catch (ParserException e) {
            throw new BrixException("Couldn't parse node content: '" + node.getPath() + "'", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.brixcms.exception.BrixException

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.