public class TemplateParseException extends WindwardException
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_DECODE_ERROR
UUDecoding a binary stream failed.
|
static int |
TYPE_FILE_NOT_FOUND
A file the template needs to import is not there.
|
static int |
TYPE_LIMITATION
Using feature or property Windward does not support.
|
static int |
TYPE_NOT_OPENXML_FILE
This is not an OpenXML file (DOCX, PPTX, XLSX).
|
static int |
TYPE_PARSE_ERROR
The xml parser threw an exception.
|
Constructor and Description |
---|
TemplateParseException(int type)
Constructs a new exception with
null as its detail message. |
TemplateParseException(int typ,
java.lang.String path,
int num)
Create an exception object, setting the exception type.
|
TemplateParseException(java.lang.String message,
int type)
Constructs a new exception with the specified detail message.
|
TemplateParseException(java.lang.String message,
java.lang.Throwable cause,
int type)
Constructs a new exception with the specified detail message and
cause.
|
TemplateParseException(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.String |
getMessage()
Returns the detail message string of this throwable.
|
int |
getType()
One of the static TYPE_* ints describing the type of exception.
|
java.lang.String |
toString() |
getDocPos, getFullTag, setDocPos, setFullTag
public static final int TYPE_NOT_OPENXML_FILE
public static final int TYPE_PARSE_ERROR
public static final int TYPE_FILE_NOT_FOUND
public static final int TYPE_DECODE_ERROR
public static final int TYPE_LIMITATION
public TemplateParseException(int type)
null
as its detail message.
The cause is not initialized, and may subsequently be initialized by a
call to Throwable.initCause(java.lang.Throwable)
.type
- The subtype of this exception.public TemplateParseException(java.lang.String message, java.lang.Throwable cause, int type)
Note that the detail message associated with
cause
is not automatically incorporated in
this exception's detail message.
message
- the detail message.cause
- the cause.type
- The subtype of this exception.public TemplateParseException(java.lang.String message, int type)
Throwable.initCause(java.lang.Throwable)
.message
- the detail message. The detail message is saved for
later retrieval by the getMessage()
method.type
- The subtype of this exception.public TemplateParseException(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 TemplateParseException(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 int getType()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Throwable
instance
(which may be null
).public java.lang.String toString()
toString
in class java.lang.Throwable
Copyright © 2002-2021 Windward Studios, LLC. - All Rights Reserved. We are Java document generation software