public class FactoryException extends RuntimeException
Factory.create(java.lang.String)
.Constructor and Description |
---|
FactoryException(ConfigParameters configParameters,
String key,
Object reason)
Creates a new instance based on the specified configuration parameters
and reason object.
|
Modifier and Type | Method and Description |
---|---|
String |
getClassName()
Returns the fully qualified class name.
|
String |
getFullKey()
Returns the full class name key.
|
Object |
getReason()
Returns the reason object causing this exception.
|
String |
toString()
Renders this instance as follows: jcckit.util.FactoryException:
full key = class name: reason.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public FactoryException(ConfigParameters configParameters, String key, 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.Copyright © 2015. All Rights Reserved.