|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.web3d.vrml.lang.VRMLException
org.web3d.vrml.lang.FieldException
org.web3d.vrml.lang.InvalidFieldFormatException
Exception for when the format provided by the field is invalid for what the field requires.
The exception also has the option of including line and column number information for when it is generated from a file that was read. If the field was parsed from a non-file source, such as the SAI, then no number information will be present and the two getter methods will return a value of -1.
| Constructor Summary | |
InvalidFieldFormatException()
Create a new exception with no message. |
|
InvalidFieldFormatException(java.lang.String msg)
Create a new exception with a message. |
|
InvalidFieldFormatException(java.lang.String msg,
int lineNumber,
int columnNumber)
Create a new exception with a message and the name of the field that had the error. |
|
InvalidFieldFormatException(java.lang.String msg,
int lineNumber,
int columnNumber,
java.lang.String field)
Create a new exception with a message and the name of the field that had the error. |
|
InvalidFieldFormatException(java.lang.String msg,
java.lang.String field)
Create a new exception with a message and the name of the field that had the error. |
|
| Method Summary | |
int |
getColumnNumber()
Get the column number this exception occurred on. |
java.lang.String |
getFieldName()
Get the name of the field that generated this exception. |
int |
getLineNumber()
Get the line number this exception occurred on. |
void |
setColumnNumber(int columnNumber)
Get the column number this exception occurred on. |
void |
setFieldName(java.lang.String field)
Set the name of the field that caused this error. |
void |
setLineNumber(int lineNumber)
Get the line number this exception occurred on. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public InvalidFieldFormatException()
public InvalidFieldFormatException(java.lang.String msg)
msg - The message associated with this exception
public InvalidFieldFormatException(java.lang.String msg,
java.lang.String field)
msg - The message associated with this exceptionfield - The name of the field with the error
public InvalidFieldFormatException(java.lang.String msg,
int lineNumber,
int columnNumber)
msg - The message associated with this exceptionlineNumber - The line number the error occurred oncolumnNumber - The column number the error occurred on
public InvalidFieldFormatException(java.lang.String msg,
int lineNumber,
int columnNumber,
java.lang.String field)
msg - The message associated with this exceptionfield - The name of the field with the error| Method Detail |
public void setFieldName(java.lang.String field)
field - The name of the field with the errorpublic java.lang.String getFieldName()
public void setLineNumber(int lineNumber)
lineNumber - The line number the error was on.public int getLineNumber()
public void setColumnNumber(int columnNumber)
columnNumber - The column number the error was on.public int getColumnNumber()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||