public class FactoryException
extends java.lang.RuntimeException
Factory.create(java.lang.String)
.Constructor and Description |
---|
FactoryException(ConfigParameters configParameters,
java.lang.String key,
java.lang.Object reason)
Creates a new instance based on the specified configuration parameters
and reason object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName()
Returns the fully qualified class name.
|
java.lang.String |
getFullKey()
Returns the full class name key.
|
java.lang.Object |
getReason()
Returns the reason object causing this exception.
|
java.lang.String |
toString()
Renders this instance as follows: jcckit.util.FactoryException:
full key = class name: reason.
|
public FactoryException(ConfigParameters configParameters, java.lang.String key, java.lang.Object reason)
If reason is an instance of InvocationTargetException it will be replaced by the wrapped Throwable.
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.public java.lang.String getFullKey()
public java.lang.String getClassName()
public java.lang.Object getReason()
public java.lang.String toString()
toString
in class java.lang.Throwable
Copyright © 2020. All Rights Reserved.