Class SuppressionErrorHandler
- java.lang.Object
-
- org.owasp.dependencycheck.xml.suppression.SuppressionErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
@ThreadSafe public class SuppressionErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandler
An XML parsing error handler.- Author:
- Jeremy Long
-
-
Constructor Summary
Constructors Constructor Description SuppressionErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(org.xml.sax.SAXParseException ex)
Handles errors.void
fatalError(org.xml.sax.SAXParseException ex)
Handles fatal exceptions.void
warning(org.xml.sax.SAXParseException ex)
Logs warnings.
-
-
-
Method Detail
-
warning
public void warning(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
Logs warnings.- Specified by:
warning
in interfaceorg.xml.sax.ErrorHandler
- Parameters:
ex
- the warning to log- Throws:
org.xml.sax.SAXException
- is never thrown
-
error
public void error(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
Handles errors.- Specified by:
error
in interfaceorg.xml.sax.ErrorHandler
- Parameters:
ex
- the error to handle- Throws:
org.xml.sax.SAXException
- is always thrown
-
fatalError
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
Handles fatal exceptions.- Specified by:
fatalError
in interfaceorg.xml.sax.ErrorHandler
- Parameters:
ex
- a fatal exception- Throws:
org.xml.sax.SAXException
- is always thrown
-
-