Project

General

Profile

« Previous | Next » 

Revision 1465

Added by Jing Tao almost 22 years ago

Add code to debug warning and error message.

View differences:

src/edu/ucsb/nceas/metacat/DBSAXHandler.java
700 700
    * SAX Handler that receives notification of recoverable parsing errors
701 701
    */
702 702
   public void error(SAXParseException exception) throws SAXException {
703
     MetaCatUtil.debugMessage("ERROR", 50);
703
     MetaCatUtil.debugMessage("ERROR: "+exception.getMessage(), 50);
704 704
     throw (new SAXException("Processing error.", exception));
705 705
   }
706 706

  
......
708 708
    * SAX Handler that receives notification of warnings
709 709
    */
710 710
   public void warning(SAXParseException exception) throws SAXException {
711
     MetaCatUtil.debugMessage("WARNING", 50);
711
     MetaCatUtil.debugMessage("WARNING: "+exception.getMessage(), 50);
712 712
     throw (new SAXException("Warning.", exception));
713 713
   }
714 714

  

Also available in: Unified diff