Class XmlParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.aquima.interactions.foundation.exception.SysException
-
- com.aquima.interactions.foundation.xml.exception.XmlException
-
- com.aquima.interactions.foundation.xml.exception.XmlParseException
-
- All Implemented Interfaces:
Serializable
public class XmlParseException extends XmlException
Exception that is thrown when a problem in the XML parsing occurs.- Since:
- 5.0
- Author:
- I. de Jong
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XmlParseException(String message)
Constructs the exception with a message explaining the cause of the error.XmlParseException(String message, String[] parseErrors)
Constructs the exception with a message explaining the cause of the error and an array of parse errors.XmlParseException(String message, String[] parseErrors, Throwable cause)
Constructs the exception with a message explaining the cause of the error and an array of parse errors.XmlParseException(String message, Throwable cause)
Constructs the exception with a message explaining the cause of the error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getParseErrors()
Retrieve the list of parse errors that occurred during DOM-parsing.-
Methods inherited from class com.aquima.interactions.foundation.exception.SysException
raise, raise
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
XmlParseException
public XmlParseException(String message)
Constructs the exception with a message explaining the cause of the error.- Parameters:
message
- A message explaining the cause of the error.
-
XmlParseException
public XmlParseException(String message, String[] parseErrors)
Constructs the exception with a message explaining the cause of the error and an array of parse errors.- Parameters:
message
- A message explaining the cause of the error.parseErrors
- Array containing parse errors.
-
XmlParseException
public XmlParseException(String message, String[] parseErrors, Throwable cause)
Constructs the exception with a message explaining the cause of the error and an array of parse errors.- Parameters:
message
- A message explaining the cause of the error.parseErrors
- Array containing parse errors.cause
- The root cause of the exception
-
-
Method Detail
-
getParseErrors
public String[] getParseErrors()
Retrieve the list of parse errors that occurred during DOM-parsing. This list is empty if using a SAX-parser or when the exception didn't occur because of a parse error.- Returns:
- array of error messages (may be empty).
-
-