Package africa.absa.inception.core.xml
Class XmlParserException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- africa.absa.inception.core.exception.RichRuntimeException
-
- africa.absa.inception.core.xml.XmlParserException
-
- All Implemented Interfaces:
Serializable
public class XmlParserException extends RichRuntimeException
The XmlParserException exception is thrown to indicate an error condition when parsing an XML file.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XmlParserException()Constructs a new XmlParserException with null as its message.XmlParserException(String message)Constructs a new XmlParserException with the specified message.XmlParserException(String code, String message)Constructs a new XmlParserException with the specified code and message.XmlParserException(String code, String message, Throwable cause)Constructs a new XmlParserException with the specified code, message and cause.XmlParserException(String message, Throwable cause)Constructs a new XmlParserException with the specified message and cause.XmlParserException(Throwable cause)Constructs a new XmlParserException with the specified cause and a message of (cause==null ? null : cause.toString()) (which typically contains the class and message of cause).XmlParserException(SAXParseException cause)Constructs a new XmlParserException using the information contained in the specified SAXParseException.
-
Method Summary
-
Methods inherited from class africa.absa.inception.core.exception.RichRuntimeException
getCode, getWhen, getWhenAsString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
XmlParserException
public XmlParserException()
Constructs a new XmlParserException with null as its message.
-
XmlParserException
public XmlParserException(SAXParseException cause)
Constructs a new XmlParserException using the information contained in the specified SAXParseException.- Parameters:
cause- the SAXParseException giving the cause of the exception
-
XmlParserException
public XmlParserException(String message)
Constructs a new XmlParserException with the specified message.- Parameters:
message- The message saved for later retrieval by the getMessage() method.
-
XmlParserException
public XmlParserException(Throwable cause)
Constructs a new XmlParserException with the specified cause and a message of (cause==null ? null : cause.toString()) (which typically contains the class and message of cause).- Parameters:
cause- The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)
-
XmlParserException
public XmlParserException(String code, String message)
Constructs a new XmlParserException with the specified code and message.- Parameters:
code- the error codemessage- The message saved for later retrieval by the getMessage() method.
-
XmlParserException
public XmlParserException(String message, Throwable cause)
Constructs a new XmlParserException with the specified message and cause.- Parameters:
message- The message saved for later retrieval by the getMessage() method.cause- The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)
-
XmlParserException
public XmlParserException(String code, String message, Throwable cause)
Constructs a new XmlParserException with the specified code, message and cause.- Parameters:
code- the error codemessage- The message saved for later retrieval by the getMessage() method.cause- The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)
-
-