jcckit.util
Class FactoryException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--jcckit.util.FactoryException
- All Implemented Interfaces:
- java.io.Serializable
- public class FactoryException
- extends java.lang.RuntimeException
Exception thrown in the case of an error during creation of a new
object by Factory.create(jcckit.util.ConfigParameters)
.
- Author:
- Franz-Josef Elmer
- See Also:
- Serialized Form
Constructor Summary |
FactoryException(ConfigParameters configParameters,
java.lang.String key,
java.lang.Object reason)
Creates a new instance based on the specified configuration parameters
and reason object.
|
Method Summary |
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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FactoryException
public FactoryException(ConfigParameters configParameters,
java.lang.String key,
java.lang.Object reason)
- 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:
configParameter
- 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.
getFullKey
public java.lang.String getFullKey()
- Returns the full class name key.
getClassName
public java.lang.String getClassName()
- Returns the fully qualified class name.
getReason
public java.lang.Object getReason()
- Returns the reason object causing this exception.
toString
public java.lang.String toString()
- Renders this instance as follows: jcckit.util.FactoryException:
full key = class name: reason.
- Overrides:
toString
in class java.lang.Throwable