Class InvalidDataContainerException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- de.aristaflow.adept2.model.datamanagement.InvalidDataContainerException
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- InvalidListValuedDataContainerException
 
 public class InvalidDataContainerException extends Exception AnInvalidDataContainerExceptionindicates the non-conformance of an expected data container with the actual data container. For instance, not all mandatory output parameters are provided or contain valid values or a data container is to be flushed that does not match to the designated node.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected UUIDinstanceIDThe instance ID that the data container is expected to be of (but is not).protected InputDataContainerinvalidDataContainerThe data container that has caused this exception.protected StringinvalidParameterNameThe name of the parameter that has behaved unexpectedly, for instance, the parameter is mandatory but not provided by the data container.protected intnodeIDThe node ID that the data container is expected to be of (but is not).protected intnodeIterationThe node iteration that the data container is expected to be of (but is not).
 - 
Constructor SummaryConstructors Constructor Description InvalidDataContainerException(DataContainer invalidDataContainer, String invalidParameterName, Throwable cause)Constructs a newInvalidDataContainerExceptionraised by the designated cause while accessing/manipulating the designated data container with the designated parameter name.InvalidDataContainerException(DataContainer invalidDataContainer, Throwable cause)Constructs a newInvalidDataContainerExceptionraised by the designated cause while accessing/manipulating the designated data container.InvalidDataContainerException(InputDataContainer invalidDataContainer, String invalidParameterName)Constructs a newInvalidDataContainerExceptionto indicate that the designated data container does not contain the expected data.InvalidDataContainerException(InputDataContainer invalidDataContainer, String invalidParameterName, Throwable cause)Constructs a newInvalidDataContainerExceptionraised by the designated cause while accessing/manipulating the designated data container with the designated parameter name.InvalidDataContainerException(InputDataContainer invalidDataContainer, UUID instanceID, int nodeID, int nodeIteration)Constructs a newInvalidDataContainerExceptionto indicate that the designated data container does not correspond to the node information when flushed.InvalidDataContainerException(String mandatoryParamName)Constructs a newInvalidDataContainerExceptionto indicate that no data container is provided but a mandatory (instance input) parameter exists.InvalidDataContainerException(String msg, DataContainer invalidDataContainer)Constructs a newInvalidDataContainerExceptionfor the designated data container with the designated arbitrary message.InvalidDataContainerException(String msg, Throwable cause, DataContainer invalidDataContainer)Constructs a newInvalidDataContainerExceptionraised by the designated cause while accessing/manipulating the designated data container with the designated arbitrary message.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDgetInstanceID()Gets the instance ID that the data container is expected to be of (but is not) or null in case this exception has not been raised due to wrong node information when flushed.InputDataContainergetInvalidDataContainer()Gets the data container that caused this exception ornullif this exception is caused by a missing data container.StringgetInvalidParameterName()Gets the name of the parameter that has behaved unexpectedly or null in case this exception has been raised due to wrong node information when flushed.intgetNodeID()Gets the node ID that the data container is expected to be of (but is not) orCommonConstants.INT_ID_NOT_EXISTINGin case this exception has not been raised due to wrong node information when flushed.intgetNodeIteration()Gets the node iteration that the data container is expected to be of (but is not) orCommonConstants.INT_ID_NOT_EXISTINGin case this exception has not been raised due to wrong node information when flushed.- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Field Detail- 
invalidDataContainerprotected final InputDataContainer invalidDataContainer The data container that has caused this exception.
 - 
invalidParameterNameprotected final String invalidParameterName The name of the parameter that has behaved unexpectedly, for instance, the parameter is mandatory but not provided by the data container.
 - 
instanceIDprotected final UUID instanceID The instance ID that the data container is expected to be of (but is not).
 - 
nodeIDprotected final int nodeID The node ID that the data container is expected to be of (but is not).
 - 
nodeIterationprotected final int nodeIteration The node iteration that the data container is expected to be of (but is not).
 
- 
 - 
Constructor Detail- 
InvalidDataContainerExceptionpublic InvalidDataContainerException(DataContainer invalidDataContainer, Throwable cause) Constructs a newInvalidDataContainerExceptionraised by the designated cause while accessing/manipulating the designated data container.- Parameters:
- invalidDataContainer- The data container that caused an exception when accessed/manipulated.
- cause- The cause that led to the constructed- InvalidDataContainerException.
 
 - 
InvalidDataContainerExceptionpublic InvalidDataContainerException(String msg, DataContainer invalidDataContainer) Constructs a newInvalidDataContainerExceptionfor the designated data container with the designated arbitrary message.- Parameters:
- msg- An arbitrary message for the exception.
- invalidDataContainer- The data container that caused an exception when accessed/manipulated.
 
 - 
InvalidDataContainerExceptionpublic InvalidDataContainerException(String msg, Throwable cause, DataContainer invalidDataContainer) Constructs a newInvalidDataContainerExceptionraised by the designated cause while accessing/manipulating the designated data container with the designated arbitrary message.- Parameters:
- msg- An arbitrary message for the exception.
- cause- The cause that led to the constructed- InvalidDataContainerException.
- invalidDataContainer- The data container that caused an exception when accessed/manipulated.
 
 - 
InvalidDataContainerExceptionpublic InvalidDataContainerException(DataContainer invalidDataContainer, String invalidParameterName, Throwable cause) Constructs a newInvalidDataContainerExceptionraised by the designated cause while accessing/manipulating the designated data container with the designated parameter name.
 The created exception will provide information on the parent node (instance ID, node ID, iteration).- Parameters:
- invalidDataContainer- The data container that caused an exception when accessed/manipulated.
- invalidParameterName- The name of the parameter that does not behave like expected, for instance, it does not provide a mandatory value.
- cause- The cause that led to the constructed- InvalidDataContainerException.
 
 - 
InvalidDataContainerExceptionpublic InvalidDataContainerException(InputDataContainer invalidDataContainer, String invalidParameterName, Throwable cause) Constructs a newInvalidDataContainerExceptionraised by the designated cause while accessing/manipulating the designated data container with the designated parameter name.
 The created exception will not provide any information on the parent node (instance ID, node ID, iteration).- Parameters:
- invalidDataContainer- The data container that caused an exception when accessed/manipulated.
- invalidParameterName- The name of the parameter that does not behave like expected, for instance, it does not provide a mandatory value.
- cause- The cause that led to the constructed- InvalidDataContainerException.
 
 - 
InvalidDataContainerExceptionpublic InvalidDataContainerException(InputDataContainer invalidDataContainer, String invalidParameterName) Constructs a newInvalidDataContainerExceptionto indicate that the designated data container does not contain the expected data.
 The created exception will not provide any information on the parent node (instance ID, node ID, iteration).- Parameters:
- invalidDataContainer- The erroneous data container.
- invalidParameterName- The name of the parameter that does not behave like expected, for instance, it does not provide a mandatory value.
 
 - 
InvalidDataContainerExceptionpublic InvalidDataContainerException(String mandatoryParamName) Constructs a newInvalidDataContainerExceptionto indicate that no data container is provided but a mandatory (instance input) parameter exists. The created exception will not provide any information on the parent node (instance ID, node ID, iteration).- Parameters:
- mandatoryParamName- The name of the mandatory (instance input) parameter that needs to be provided but is not due to the absence of a data container.
 
 - 
InvalidDataContainerExceptionpublic InvalidDataContainerException(InputDataContainer invalidDataContainer, UUID instanceID, int nodeID, int nodeIteration) Constructs a newInvalidDataContainerExceptionto indicate that the designated data container does not correspond to the node information when flushed.- Parameters:
- invalidDataContainer- The data container that does not correspond to the node information when flushed.
- instanceID- The instance ID that the data container is expected to be of (but is not).
- nodeID- The node ID that the data container is expected to be of (but is not).
- nodeIteration- The node iteration that the data container is expected to be of (but is not).
 
 
- 
 - 
Method Detail- 
getInvalidDataContainerpublic InputDataContainer getInvalidDataContainer() Gets the data container that caused this exception ornullif this exception is caused by a missing data container.- Returns:
- The invalid data container or nullif this exception is caused by a missing data container.
 
 - 
getInvalidParameterNamepublic String getInvalidParameterName() Gets the name of the parameter that has behaved unexpectedly or null in case this exception has been raised due to wrong node information when flushed.- Returns:
- The invalid parameter name or null.
 
 - 
getInstanceIDpublic UUID getInstanceID() Gets the instance ID that the data container is expected to be of (but is not) or null in case this exception has not been raised due to wrong node information when flushed.- Returns:
- The ID of the instance that the data container is expected to be of (but is not) or null.
 
 - 
getNodeIDpublic int getNodeID() Gets the node ID that the data container is expected to be of (but is not) orCommonConstants.INT_ID_NOT_EXISTINGin case this exception has not been raised due to wrong node information when flushed.- Returns:
- The node ID that the data container is expected to be of (but is
         not) or
         CommonConstants.INT_ID_NOT_EXISTING.
 
 - 
getNodeIterationpublic int getNodeIteration() Gets the node iteration that the data container is expected to be of (but is not) orCommonConstants.INT_ID_NOT_EXISTINGin case this exception has not been raised due to wrong node information when flushed.- Returns:
- The node iteration that the data container is expected to be of
         (but is not) or
         CommonConstants.INT_ID_NOT_EXISTING.
 
 
- 
 
-