Package jcckit.util
Class FactoryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jcckit.util.FactoryException
- All Implemented Interfaces:
Serializable
Exception thrown in the case of an error during creation of a new
object by
Factory.create(java.lang.String)
.- See Also:
-
Constructor Summary
ConstructorDescriptionFactoryException
(ConfigParameters configParameters, String key, Object reason) Creates a new instance based on the specified configuration parameters and reason object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the fully qualified class name.Returns the full class name key.Returns the reason object causing this exception.toString()
Renders this instance as follows: jcckit.util.FactoryException: full key = class name: reason.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
FactoryException
Creates a new instance based on the specified configuration parameters and reason object.If reason is an instance of InvocationTargetException it will be replaced by the wrapped Throwable.
- Parameters:
configParameters
- Configuration parameters from which the className will be extracted (if it exists, otherwise null will be taken).reason
- The reason causing this exception. Most often an an exception.
-
-
Method Details