Package org.web3d.vrml.parser
Class FactoryConfigurationError
java.lang.Object
java.lang.Throwable
java.lang.Error
org.web3d.vrml.parser.FactoryConfigurationError
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty error with no message or wrapped exception.Create an error that wraps the given exception but contains no message.FactoryConfigurationError
(Exception e, String msg) Create an error that has a message and wrapped exception.Create an error that has a message but no wrapped exception -
Method Summary
Modifier and TypeMethodDescriptionGet the wrapped exception for this error.boolean
Convenience method to see if this has a wrapped exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FactoryConfigurationError
public FactoryConfigurationError()Create an empty error with no message or wrapped exception. -
FactoryConfigurationError
Create an error that wraps the given exception but contains no message.- Parameters:
e
- The exception to include
-
FactoryConfigurationError
Create an error that has a message but no wrapped exception- Parameters:
msg
- The message to include with the error
-
FactoryConfigurationError
-
-
Method Details
-
hasException
public boolean hasException()Convenience method to see if this has a wrapped exception.- Returns:
- true if this error contains a nested exception
-
getException
Get the wrapped exception for this error. If there was no exception given then this returns null.- Returns:
-