Package jadex.bridge
Class ComponentCreationException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- jadex.bridge.ComponentCreationException
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ComponentCreationException extends java.lang.RuntimeExceptionThrown when component creation failed.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.ObjectinfoThe optional info.protected java.lang.StringreasonThe reason.static java.lang.StringREASON_COMPONENT_EXISTSConstant that indicates that the component already exists.static java.lang.StringREASON_MODEL_ERRORConstant that indicates that a model has occurred.static java.lang.StringREASON_NO_COMPONENT_FACTORYConstant that indicates that no component factory has been found.static java.lang.StringREASON_WRONG_IDConstant that indicates that component has a wrong/errorneous id.
 - 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetInfo()Get the info.java.lang.StringgetReason()Get the reason.voidsetInfo(java.lang.Object info)Set the info.voidsetReason(java.lang.String reason)Set the reason.
 
- 
- 
- 
Field Detail- 
REASON_COMPONENT_EXISTSpublic static final java.lang.String REASON_COMPONENT_EXISTS Constant that indicates that the component already exists.- See Also:
- Constant Field Values
 
 - 
REASON_WRONG_IDpublic static final java.lang.String REASON_WRONG_ID Constant that indicates that component has a wrong/errorneous id.- See Also:
- Constant Field Values
 
 - 
REASON_MODEL_ERRORpublic static final java.lang.String REASON_MODEL_ERROR Constant that indicates that a model has occurred.- See Also:
- Constant Field Values
 
 - 
REASON_NO_COMPONENT_FACTORYpublic static final java.lang.String REASON_NO_COMPONENT_FACTORY Constant that indicates that no component factory has been found.- See Also:
- Constant Field Values
 
 - 
reasonprotected java.lang.String reason The reason.
 - 
infoprotected java.lang.Object info The optional info.
 
- 
 - 
Constructor Detail- 
ComponentCreationExceptionpublic ComponentCreationException(java.lang.String message, java.lang.String reason)Create an component termination exception.
 - 
ComponentCreationExceptionpublic ComponentCreationException(java.lang.String message, java.lang.String reason, java.lang.Object info)Create an component termination exception.
 
- 
 - 
Method Detail- 
getReasonpublic java.lang.String getReason() Get the reason.- Returns:
- The reason.
 
 - 
setReasonpublic void setReason(java.lang.String reason) Set the reason.- Parameters:
- reason- The reason to set.
 
 - 
getInfopublic java.lang.Object getInfo() Get the info.- Returns:
- the info.
 
 - 
setInfopublic void setInfo(java.lang.Object info) Set the info.- Parameters:
- info- The info to set.
 
 
- 
 
-