Package org.apache.avalon.framework

Examples of org.apache.avalon.framework.CascadingRuntimeException


        } catch (JavaScriptException ex) {
            EvaluatorException ee =
                Context.reportRuntimeError(ToolErrorReporter.getMessage("msg.uncaughtJSException",

                                                                        ex.getMessage()));
            throw new CascadingRuntimeException(ee.getMessage(), unwrap(ex));
        } finally {
            exitContext(thrScope);
        }
    }
View Full Code Here


            ((Function)handleContFunction).call(context, kScope, kScope, args);
        } catch (JavaScriptException ex) {
            EvaluatorException ee =
                Context.reportRuntimeError(ToolErrorReporter.getMessage("msg.uncaughtJSException",
                                                                        ex.getMessage()));
            throw new CascadingRuntimeException(ee.getMessage(), unwrap(ex));
        } finally {
            Context.exit();
        }
    }
View Full Code Here

            // Don't keep known hints (they're no more needed)
            this.knownHints = null;

        } catch(Exception e) {
            throw new CascadingRuntimeException("Cannot setup default components", e);
        }

    }
View Full Code Here

        Source source = null;
        try {
            source = resolver.resolveURI(uri, base, null);
            resolver.toSAX(source, new IncludeXMLConsumer(contentHandler));
        } catch (Exception e) {
            throw new CascadingRuntimeException("Error including source " + base + " " + uri, e);
        } finally {
            if (source != null) {
                resolver.release(source);
            }
        }
View Full Code Here

        try {
            XSPUtil.includeInputSource(new InputSource(new FileReader(XSPUtil.relativeFilename(name,objectModel))),
                                       manager, contentHandler);
        } catch (IOException e) {
            throw new CascadingRuntimeException("Could not include file " + name, e);
        }
    }  
View Full Code Here

        try {
            parser = (SAXParser) manager.lookup(SAXParser.ROLE);
            IncludeXMLConsumer consumer = new IncludeXMLConsumer(contentHandler);
            parser.parse(source, consumer, consumer);
        } catch (Exception e) {
            throw new CascadingRuntimeException("Could not include page", e);
        } finally {
            if (parser != null) {
                manager.release((Component) parser);
            }
        }
View Full Code Here

                value = input.getAttributeNames(conf, objectModel);
                break;
            };

        } catch (Exception e) {
            throw new CascadingRuntimeException("A problem obtaining a value from "+name+" occurred: "+e,e);
        }

        return value;
    }
View Full Code Here

            if (!(this.inputSelector instanceof ThreadSafe)) {
                this.manager.release(this.inputSelector);
                this.inputSelector = null;
            }
        } catch (Exception e) {
            throw new CascadingRuntimeException("Could not obtain selector for InputModule.",e);
        }
    }
View Full Code Here

                    this.inputSelector.release((InputModule) this.inputModules.get(iter.next()));
                }
                this.inputModules = null;
                this.manager.release(this.inputSelector);
            } catch (Exception e) {
                throw new CascadingRuntimeException("Could not release InputModules.",e);
            }
        }
    }
View Full Code Here

            if (this.container_encoding == null)
                this.container_encoding = "ISO-8859-1";
            byte[] bytes = str.getBytes(this.container_encoding);
            return new String(bytes, form_encoding);
        } catch (java.io.UnsupportedEncodingException uee) {
            throw new CascadingRuntimeException("Unsupported Encoding Exception", uee);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.avalon.framework.CascadingRuntimeException

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.