Code example for SAXParseException

Methods: getColumnNumber, getLineNumber, getSystemId, toString

0
        } 
         
        /* ------------------------------------------------------------ */ 
        public void warning(SAXParseException ex)
        { 
            Code.debug(ex);
            Code.warning("WARNING@"+getLocationString(ex)+
                         " : "+ex.toString());
        } 
                 
        /* ------------------------------------------------------------ */ 
        public void error(SAXParseException ex)
            throws SAXException 
        { 
            // Save error and continue to report other errors 
            if(_error==null)
                _error=ex;
            Code.debug(ex);
            Code.warning("ERROR@"+getLocationString(ex)+
                         " : "+ex.toString());
        } 
         
        /* ------------------------------------------------------------ */ 
        public void fatalError(SAXParseException ex)
            throws SAXException 
        { 
            _error=ex;
            Code.debug(ex);
            Code.warning("FATAL@"+getLocationString(ex)+
                         " : "+ex.toString());
            throw ex;
        }	     
 
        /* ------------------------------------------------------------ */ 
        private String getLocationString(SAXParseException ex)
        { 
            return ex.getSystemId()+
                " line:"+ex.getLineNumber()+
                " col:"+ex.getColumnNumber();
        } 
         
        /* ------------------------------------------------------------ */ 
        public InputSource resolveEntity
            (String pid, String sid)