vrml.eai.field
Class InvalidFieldException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by vrml.eai.VrmlException
                  extended by 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

Constructor Summary
InvalidFieldException()
          Constructor.
InvalidFieldException(java.lang.String msg)
          Constructor.
 
Method Summary
 
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

InvalidFieldException

public InvalidFieldException()
Constructor.


InvalidFieldException

public InvalidFieldException(java.lang.String msg)
Constructor.

Parameters:
msg - Message that describes the error.