vrml.eai
Class InvalidVrmlException

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.InvalidVrmlException
All Implemented Interfaces:
java.io.Serializable

public class InvalidVrmlException
extends VrmlException

Exception that gets thrown when you specify invalid VRML code. This exception gets thrown from Browser.createVrmlFromString(java.lang.String) when you call this method with a string that does not contain valid VRML code.

The following example demonstrates how to catch an InvalidVrmlException and print an error message to the console:

 try
 {
     ...
 }
 catch (vrml.eai.InvalidVrmlException ex)
 {
     System.out.println(ex);
 }
 

See Also:
Serialized Form

Constructor Summary
InvalidVrmlException()
          Constructor.
InvalidVrmlException(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

InvalidVrmlException

public InvalidVrmlException()
Constructor.


InvalidVrmlException

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

Parameters:
msg - Message that describes the error.