Package com.norconex.commons.lang.xml
Class XMLValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.norconex.commons.lang.xml.XMLValidationException
-
- All Implemented Interfaces:
Serializable
public class XMLValidationException extends RuntimeException
Runtime exception for configuration related issues.- Since:
- 2.0.0
- Author:
- Pascal Essiembre
- See Also:
XML.validate(Class), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XMLValidationException(List<XMLValidationError> errors)Constructor.XMLValidationException(List<XMLValidationError> errors, XML xml)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<XMLValidationError>getErrors()XMLgetXml()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
XMLValidationException
public XMLValidationException(List<XMLValidationError> errors)
Constructor.- Parameters:
errors- configuration errors (e.g. schema validation errors)
-
XMLValidationException
public XMLValidationException(List<XMLValidationError> errors, XML xml)
Constructor.- Parameters:
errors- configuration errors (e.g. schema validation errors)xml- the XML containing validation errors
-
-
Method Detail
-
getErrors
public List<XMLValidationError> getErrors()
-
getXml
public XML getXml()
-
-