vrml.eai.field
Class InvalidFieldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
vrml.eai.VrmlException
vrml.eai.field.InvalidFieldException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- InvalidEventInException, InvalidEventOutException
public class InvalidFieldException
- extends VrmlException
Exception that gets thrown when you try to get an unknown
event-in or event-out slot from a node. This exception gets
thrown by Node.getEventOut(java.lang.String)
and
Node.getEventIn(java.lang.String)
specify a field name that
does not exist in the node.
The following example demonstrates how to catch all
InvalidFieldExceptions and print an error message to the
console:
try
{
...
}
catch (vrml.eai.field.InvalidFieldException ex)
{
System.out.println(ex);
}
- See Also:
- Serialized Form
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 |
InvalidFieldException
public InvalidFieldException()
- Constructor.
InvalidFieldException
public InvalidFieldException(java.lang.String msg)
- Constructor.
- Parameters:
msg
- Message that describes the error.