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
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

  Modifier and Type
  Method
  Description
  `List<XmlValidationError>`
  `getErrors()`
  `Xml`
  `getXml()`

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### 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 Details

  - ### getErrors

    public List<XmlValidationError> getErrors()

  - ### getXml

    public Xml getXml()