public class WordMLException extends TemplateParseException
Modifier and Type | Field and Description |
---|---|
static int |
NOT_WORDML_FILE
This is not a WordML file.
|
static int |
PARSE_ERROR
The xml parser threw an exception.
|
Constructor and Description |
---|
WordMLException(int typ,
java.lang.String path,
int num)
Create an exception object, setting the exception type.
|
WordMLException(java.lang.Throwable cause,
int typ,
java.lang.String path,
int num)
Create an exception object, setting the exception type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Returns the cause of this throwable or
null if the
cause is nonexistent or unknown. |
java.lang.String |
getMessage()
Returns the detail message string of this throwable.
|
getDocPos, getFullTag, setDocPos, setFullTag
public static final int NOT_WORDML_FILE
public static final int PARSE_ERROR
public WordMLException(int typ, java.lang.String path, int num)
typ
- The exception type - one of the static final int's from this class.path
- The xpath to the node with this error - does not include [] in xpath.num
- The nth element processedpublic WordMLException(java.lang.Throwable cause, int typ, java.lang.String path, int num)
cause
- The root exceptiontyp
- The exception type - one of the static final int's from this class.path
- The xpath to the node with this error - does not include [] in xpath.num
- The nth element processedpublic java.lang.Throwable getCause()
null
if the
cause is nonexistent or unknown. (The cause is the throwable that
caused this throwable to get thrown.)
This implementation returns the cause that was supplied via one of
the constructors requiring a Throwable, or that was set after
creation with the Throwable.initCause(Throwable)
method. While it is
typically unnecessary to override this method, a subclass can override
it to return a cause set by some other means. This is appropriate for
a "legacy chained throwable" that predates the addition of chained
exceptions to Throwable. Note that it is not
necessary to override any of the PrintStackTrace methods,
all of which invoke the getCause method to determine the
cause of a throwable.
getCause
in class java.lang.Throwable
null
if the
cause is nonexistent or unknown.public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Copyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software