@OpenApiAll public class ParseErrorException extends TemplateException
Modifier and Type | Field and Description |
---|---|
protected int |
columnNumber
The column number of the parsing error, or -1 if not defined.
|
protected java.lang.String |
fullMessage
Message in detailed.
|
protected int |
lineNumber
The line number of the parsing error, or -1 if not defined.
|
protected java.lang.String |
source
Contains content to template until error offset.
|
protected Template |
template
Contains reference to error template.
|
Constructor and Description |
---|
ParseErrorException()
Constructs a new exception with
null as its detail message. |
ParseErrorException(java.lang.String message)
Constructs a new exception with the specified detail message.
|
ParseErrorException(java.lang.String message,
Template template)
Constructs a new exception with the specified detail message.
|
ParseErrorException(java.lang.String message,
Template template,
int lineNumber)
Constructs a new exception with the specified detail message.
|
ParseErrorException(java.lang.String message,
Template template,
int lineNumber,
int columnNumber)
Constructs a new exception with the specified detail message.
|
ParseErrorException(java.lang.String message,
Template template,
int lineNumber,
int columnNumber,
java.lang.String source)
Constructs a new exception with the specified detail message.
|
ParseErrorException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
ParseErrorException(java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail message of
(cause==null ? null : cause.toString()) (which typically contains the class and detail message of
cause).
|
Modifier and Type | Method and Description |
---|---|
ParseErrorException |
copy(java.lang.String message)
Creates and returns a copy of this object.
|
int |
getColumnNumber()
Return the column number of the parsing error, or -1 if not defined.
|
java.lang.String |
getFullMessage()
Return a full message.
|
int |
getLineNumber()
Return the line number of the parsing error, or -1 if not defined.
|
java.lang.String |
getMessage()
Return a full message.
|
java.lang.String |
getSource()
Return a source.
|
java.lang.String |
getSourceMessage()
Return a message without customize.
|
Template |
getTemplate()
Return the template containing the error, or null if not defined.
|
void |
setColumnNumber(int columnNumber)
Set a column number of the parsing error.
|
void |
setFullMessage(java.lang.String fullMessage)
Set a full message.
|
void |
setLineNumber(int lineNumber)
Set a line number of the parsing error.
|
void |
setSource(java.lang.String source)
Set a source.
|
void |
setTemplate(Template template)
Set a template containing the error.
|
java.lang.String |
toString()
Return string representation of this exception.
|
protected int columnNumber
protected int lineNumber
protected Template template
protected java.lang.String source
protected java.lang.String fullMessage
public ParseErrorException()
null
as its detail message.public ParseErrorException(java.lang.String message)
message
- the detail message. The detail message is saved for later retrieval by the
getMessage()
method.public ParseErrorException(java.lang.String message, Template template)
message
- the detail message. The detail message is saved for later retrieval by the
getMessage()
method.template
- templatepublic ParseErrorException(java.lang.String message, Template template, int lineNumber)
message
- the detail message. The detail message is saved for later retrieval by the
getMessage()
method.template
- templatelineNumber
- line numberpublic ParseErrorException(java.lang.String message, Template template, int lineNumber, int columnNumber)
message
- the detail message. The detail message is saved for later retrieval by the
getMessage()
method.template
- templatelineNumber
- line numbercolumnNumber
- column numberpublic ParseErrorException(java.lang.String message, Template template, int lineNumber, int columnNumber, java.lang.String source)
message
- the detail message. The detail message is saved for later retrieval by the
getMessage()
method.template
- templatelineNumber
- line numbercolumnNumber
- column numbersource
- template content until offset of error character.public ParseErrorException(java.lang.String message, java.lang.Throwable cause)
Note that the detail message associated with cause
is not automatically incorporated in
this exception's detail message.
message
- the detail message (which is saved for later retrieval by the getMessage()
method).cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A
null value is permitted, and indicates that the cause is nonexistent or unknown.)public ParseErrorException(java.lang.Throwable cause)
PrivilegedActionException
).cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A
null value is permitted, and indicates that the cause is nonexistent or unknown.)public void setColumnNumber(int columnNumber)
columnNumber
- column number of the parsing errorpublic void setLineNumber(int lineNumber)
lineNumber
- the line number of the parsing errorpublic void setTemplate(Template template)
template
- the template containing the errorpublic int getColumnNumber()
public int getLineNumber()
public Template getTemplate()
public java.lang.String getSource()
public void setSource(java.lang.String source)
source
- the source to setpublic void setFullMessage(java.lang.String fullMessage)
fullMessage
- the full message to setpublic java.lang.String getFullMessage()
public java.lang.String getSourceMessage()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
public ParseErrorException copy(java.lang.String message)
message
- a new messageCopyright © 2010 - No Magic Asia