public class ComponentCreationException extends RuntimeException
Modifier and Type | Field and Description |
---|---|
static String |
REASON_COMPONENT_EXISTS
Constant that indicates that the component already exists.
|
static String |
REASON_MODEL_ERROR
Constant that indicates that a model has occurred.
|
static String |
REASON_NO_COMPONENT_FACTORY
Constant that indicates that no component factory has been found.
|
static String |
REASON_WRONG_ID
Constant that indicates that component has a wrong/errorneous id.
|
Constructor and Description |
---|
ComponentCreationException(String message,
String reason)
Create an component termination exception.
|
ComponentCreationException(String message,
String reason,
Object info)
Create an component termination exception.
|
Modifier and Type | Method and Description |
---|---|
Object |
getInfo()
Get the info.
|
String |
getReason()
Get the reason.
|
void |
setInfo(Object info)
Set the info.
|
void |
setReason(String reason)
Set the reason.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String REASON_COMPONENT_EXISTS
public static final String REASON_WRONG_ID
public static final String REASON_MODEL_ERROR
public static final String REASON_NO_COMPONENT_FACTORY
public ComponentCreationException(String message, String reason)
public String getReason()
public void setReason(String reason)
reason
- The reason to set.public Object getInfo()
public void setInfo(Object info)
info
- The info to set.Copyright © 2013. All Rights Reserved.