Package org.web3d.vrml.lang
Class InvalidFieldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.web3d.vrml.lang.VRMLException
org.web3d.vrml.lang.FieldException
org.web3d.vrml.lang.InvalidFieldException
- All Implemented Interfaces:
Serializable
Exception indicating that a field is not known by this node.
This is generated when the node does not have the named or indexed field. May be generated during the parsing process or by the field during runtime as the user is trying to modify it.
- Version:
- $Revision: 1.7 $
- Author:
- Justin Couch
- See Also:
-
Field Summary
Fields inherited from class org.web3d.vrml.lang.FieldException
fieldName
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new exception with no message.Create a new exception with a message.InvalidFieldException
(String nodeName, int index) Create a new exception for dealing with an invalid field index value.InvalidFieldException
(String msg, String field) Create a new exception with a message and the name of the field that had the error. -
Method Summary
Methods inherited from class org.web3d.vrml.lang.FieldException
getFieldName, setFieldName
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidFieldException
public InvalidFieldException()Create a new exception with no message. -
InvalidFieldException
Create a new exception with a message.- Parameters:
msg
- The message associated with this exception
-
InvalidFieldException
-
InvalidFieldException
Create a new exception for dealing with an invalid field index value. Useful for many situations such as routing and set values- Parameters:
nodeName
- The node that we are getting the field set inindex
- The index of the field being set
-