vrml.eai
Class URLUnavailableException

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

public class URLUnavailableException
extends VrmlException

Exception that gets thrown when the EAI is not able to access a resource specified by a URL. This means that the URL refers to a resource on the network that either does not exist, or that cannot be downloaded. This exception is thrown from either Browser.loadURL(java.lang.String[], java.lang.String[]) or Browser.createVrmlFromURL(java.lang.String[], vrml.eai.Node, java.lang.String).

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

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

See Also:
Serialized Form

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

URLUnavailableException

public URLUnavailableException()
Constructor.


URLUnavailableException

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

Parameters:
msg - Message that describes the error.