Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.parser
Class FactoryConfigurationError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by org.web3d.vrml.parser.FactoryConfigurationError
All Implemented Interfaces:
java.io.Serializable

public class FactoryConfigurationError
extends java.lang.Error

An error thrown when a ParserFactory fails to instantiate.

A factory will normally fail to instantiate when it cannot find the class that generates node instances or that the property was not defined.

Version:
$Revision: 1.3 $
Author:
Justin Couch
See Also:
Serialized Form

Constructor Summary
FactoryConfigurationError()
          Create an empty error with no message or wrapped exception.
FactoryConfigurationError(java.lang.Exception e)
          Create an error that wraps the given exception but contains no message.
FactoryConfigurationError(java.lang.Exception e, java.lang.String msg)
          Create an error that has a message and wrapped exception.
FactoryConfigurationError(java.lang.String msg)
          Create an error that has a message but no wrapped exception
 
Method Summary
 java.lang.Exception getException()
          Get the wrapped exception for this error.
 boolean hasException()
          Convenience method to see if this has a wrapped exception.
 
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

FactoryConfigurationError

public FactoryConfigurationError()
Create an empty error with no message or wrapped exception.


FactoryConfigurationError

public FactoryConfigurationError(java.lang.Exception e)
Create an error that wraps the given exception but contains no message.

Parameters:
e - The exception to include

FactoryConfigurationError

public FactoryConfigurationError(java.lang.String msg)
Create an error that has a message but no wrapped exception

Parameters:
msg - The message to include with the error

FactoryConfigurationError

public FactoryConfigurationError(java.lang.Exception e,
                                 java.lang.String msg)
Create an error that has a message and wrapped exception.

Parameters:
e - The exception to include
msg - The message to include with the error
Method Detail

hasException

public boolean hasException()
Convenience method to see if this has a wrapped exception.

Returns:
true if this error contains a nested exception

getException

public java.lang.Exception getException()
Get the wrapped exception for this error. If there was no exception given then this returns null.


Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium