Package org.xml.sax

Examples of org.xml.sax.SAXException.initCause()


        public void error(SAXParseException e) throws SAXException {
            SAXException saxe =
                new SAXException("Error Handling [" + this.source + "@"
                      + e.getLineNumber() + "," + e.getColumnNumber() + "]");
            saxe.initCause(e);
            throw saxe;
        }

        public void setDocumentLocator(Locator locator) {
            this.locator = locator;
View Full Code Here


        if (cause != null && _log != null && _log.isTraceEnabled())
            _log.trace(_loc.get("sax-exception",
                getSourceName(), _location.getLocation()), cause);
        SAXException e = new SAXException(getSourceName() + currentLocation() +
            ": " + msg + " [" + cause + "]");
        e.initCause(cause);
        return e;
    }

    protected void clearDeferredMetaData() {
    }
View Full Code Here

            } else if ("module".equals(qName)) {
                moduleStarted(attributes);
            }
        } catch (ParseException ex) {
            SAXException sax = new SAXException("problem in config file: " + ex.getMessage(), ex);
            sax.initCause(ex);
            throw sax;
        } catch (IOException ex) {
            SAXException sax = new SAXException("io problem while parsing config file: "
                        + ex.getMessage(), ex);
            sax.initCause(ex);
View Full Code Here

            sax.initCause(ex);
            throw sax;
        } catch (IOException ex) {
            SAXException sax = new SAXException("io problem while parsing config file: "
                        + ex.getMessage(), ex);
            sax.initCause(ex);
            throw sax;
        }
    }

    private void moduleStarted(Map attributes) {
View Full Code Here

        try {
            cmd.exec(references);
        } catch (Exception e) {
            SAXException e2 = new SAXException(e.getMessage());
           
            e2.initCause(e);
            throw e2;
        }

        if (--tabCount < 0) {
            tabCount = 0;
View Full Code Here

            }
            catch (Exception e)
            {
                SAXException saxe = new SAXException("Error Handling [" + this.source + "@"
                        + this.locator.getLineNumber() + "," + this.locator.getColumnNumber() + "] <" + qName + ">");
                saxe.initCause(e);
                throw saxe;
            }
        }

        private String captureBuffer() throws Exception
View Full Code Here

        public void error(SAXParseException e) throws SAXException
        {
            SAXException saxe = new SAXException("Error Handling [" + this.source + "@" + e.getLineNumber() + ","
                    + e.getColumnNumber() + "]");
            saxe.initCause(e);
            throw saxe;
        }

        public void setDocumentLocator(Locator locator)
        {
View Full Code Here

            try {
                webRs.setKeyColumns(iKeyCols);
                webRs.setTypeMap(map);
            } catch (SQLException e) {
                SAXException ex = new SAXException();
                ex.initCause(e);
                throw ex;
            }
            /*
             * set rows
             */
 
View Full Code Here

                    readData();
                    break;
                }
            } catch (SQLException e) {
                SAXException ex = new SAXException();
                ex.initCause(e);
                throw ex;
            }
        }

        @Override
View Full Code Here

            } else if ("credentials".equals(qName)) {
                credentialsStarted(attributes);
            }
        } catch (ParseException ex) {
            SAXException sax = new SAXException("problem in config file: " + ex.getMessage(), ex);
            sax.initCause(ex);
            throw sax;
        } catch (IOException ex) {
            SAXException sax = new SAXException("io problem while parsing config file: "
                        + ex.getMessage(), ex);
            sax.initCause(ex);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.