vrml.eai
Class ConnectionException

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

public class ConnectionException
extends VrmlException

Exception that gets thrown when the network connection to a running X3D browser instance fails. This exception can be thrown by almost every EAI function call. It usually is irreparable, i.e. you have to completely reinitialize the connection to the X3D browser.

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

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

See Also:
Serialized Form

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

ConnectionException

public ConnectionException()
Constructor.


ConnectionException

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

Parameters:
msg - Message that describes the error.