public class ComponentCreationException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
info
The optional info.
|
protected java.lang.String |
reason
The reason.
|
static java.lang.String |
REASON_COMPONENT_EXISTS
Constant that indicates that the component already exists.
|
static java.lang.String |
REASON_MODEL_ERROR
Constant that indicates that a model has occurred.
|
static java.lang.String |
REASON_NO_COMPONENT_FACTORY
Constant that indicates that no component factory has been found.
|
static java.lang.String |
REASON_WRONG_ID
Constant that indicates that component has a wrong/errorneous id.
|
Constructor and Description |
---|
ComponentCreationException(java.lang.String message,
java.lang.String reason)
Create an component termination exception.
|
ComponentCreationException(java.lang.String message,
java.lang.String reason,
java.lang.Object info)
Create an component termination exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getInfo()
Get the info.
|
java.lang.String |
getReason()
Get the reason.
|
void |
setInfo(java.lang.Object info)
Set the info.
|
void |
setReason(java.lang.String reason)
Set the reason.
|
public static final java.lang.String REASON_COMPONENT_EXISTS
public static final java.lang.String REASON_WRONG_ID
public static final java.lang.String REASON_MODEL_ERROR
public static final java.lang.String REASON_NO_COMPONENT_FACTORY
protected java.lang.String reason
protected java.lang.Object info
public ComponentCreationException(java.lang.String message, java.lang.String reason)
public ComponentCreationException(java.lang.String message, java.lang.String reason, java.lang.Object info)
public java.lang.String getReason()
public void setReason(java.lang.String reason)
reason
- The reason to set.public java.lang.Object getInfo()
public void setInfo(java.lang.Object info)
info
- The info to set.