Package org.xml.sax

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


                if (ex instanceof SAXException) {
                    throw (SAXException) ex;
                }
                SAXException sax = new SAXException("Problem occurred while parsing ivy file: "
                        + ex.getMessage(), ex);
                sax.initCause(ex);
                throw sax;
            }
        }

        protected String getDefaultParentLocation() {
View Full Code Here


          }
            try {
        return new URL(href);
      } catch (MalformedURLException e) {
        SAXException ee = new SAXException(e.getMessage());
        ee.initCause(e);
        throw ee;
      }
        }
    }
View Full Code Here

                throw new IOException();
            }
            return super.resolveEntity(pubId,sysId);
    }catch(IOException e){
      SAXException se = new SAXException(e.getLocalizedMessage());
      se.initCause(e);
      throw se;
    }
    }
    // hints
    private Map hints;
View Full Code Here

            logger.warning("Line " + locator.getLineNumber() + " Col "
                    + locator.getColumnNumber());

            SAXException exception = new SAXException(e.getMessage()+" at Line " + locator.getLineNumber() + " Col "
                    + locator.getColumnNumber()+" tag is: \n"+qName, e);
            exception.initCause(e);
            throw exception;
        }
        finally {
            handlers.pop(); // we must do this or leak memory
            if (handler != null && !handlers.isEmpty()){
View Full Code Here

            logger.warning("Line " + locator.getLineNumber() + " Col "
                + locator.getColumnNumber());

            SAXException exception = new SAXException(e.getMessage()+" at Line " + locator.getLineNumber() + " Col "
                    + locator.getColumnNumber()+" tag is: \n"+qName, e);
            exception.initCause(e);
            throw exception;       
        }
    }

    /**
 
View Full Code Here

    }
    catch (Exception e)
    {
      SAXException e2 = new SAXException(e.getMessage());

      e2.initCause(e);
      throw e2;
    }

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

                if (ex instanceof SAXException) {
                    throw (SAXException) ex;
                }
                SAXException sax = new SAXException("Problem occurred while parsing ivy file: "
                        + ex.getMessage(), ex);
                sax.initCause(ex);
                throw sax;
            }
        }

        /**
 
View Full Code Here

            store.addProfileSet(profileSet);
          } catch (IllegalArgumentException invalid) {
            SAXException saxE = new SAXException(
                "<device-profile> attribute 'list' contains invalid device-name token value ["
                    + profileMember + "].");
            saxE.initCause(invalid);
            throw saxE;
          }
        }
        profileSet.addProfile(new BasicProfile(name));
      }
View Full Code Here

                if (ex instanceof SAXException) {
                    throw (SAXException) ex;
                }
                SAXException sax = new SAXException("Problem occurred while parsing ivy file: "
                        + ex.getMessage(), ex);
                sax.initCause(ex);
                throw sax;
            }
        }

        private void extendsStarted(Attributes attributes) throws ParseException {
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.