Package eu.europa.esig.dss.jaxb.common
Class DSSErrorHandler
java.lang.Object
eu.europa.esig.dss.jaxb.common.DSSErrorHandler
- All Implemented Interfaces:
ErrorHandler
The default
ErrorHandler
used to collect the occurred during
the validation errors-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(SAXParseException arg0) void
fatalError
(SAXParseException arg0) Returns a list of errors occurred during the validation process.Returns a list of fatal errors occurred during the validation process.Returns a list of warnings occurred during the validation process.boolean
isValid()
Checks if the validation succeeded (no errors or warning received)void
warning
(SAXParseException arg0)
-
Constructor Details
-
DSSErrorHandler
public DSSErrorHandler()Default constructor initializing empty lists of messages
-
-
Method Details
-
error
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXException
-
getErrors
Returns a list of errors occurred during the validation process. An empty list of the validation succeeded.- Returns:
- a list of
SAXParseException
exceptions
-
getFatalErrors
Returns a list of fatal errors occurred during the validation process. An empty list of the validation succeeded.- Returns:
- a list of
SAXParseException
exceptions
-
getWarnings
Returns a list of warnings occurred during the validation process. An empty list of the validation succeeded.- Returns:
- a list of
SAXParseException
exceptions
-
isValid
public boolean isValid()Checks if the validation succeeded (no errors or warning received)- Returns:
- TRUE if validation succeed, FALSE otherwise
-