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
An
InvalidDataContainerException indicates 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UUIDThe instance ID that the data container is expected to be of (but is not).protected final InputDataContainerThe data container that has caused this exception.protected final StringThe name of the parameter that has behaved unexpectedly, for instance, the parameter is mandatory but not provided by the data container.protected final intThe node ID that the data container is expected to be of (but is not).protected final intThe node iteration that the data container is expected to be of (but is not). -
Constructor Summary
ConstructorsConstructorDescriptionInvalidDataContainerException(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 Summary
Modifier and TypeMethodDescriptionGets 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.Gets the data container that caused this exception ornullif this exception is caused by a missing data container.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.intGets 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.intGets 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.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
invalidDataContainer
The data container that has caused this exception. -
invalidParameterName
The name of the parameter that has behaved unexpectedly, for instance, the parameter is mandatory but not provided by the data container. -
instanceID
The instance ID that the data container is expected to be of (but is not). -
nodeID
protected final int nodeIDThe node ID that the data container is expected to be of (but is not). -
nodeIteration
protected final int nodeIterationThe node iteration that the data container is expected to be of (but is not).
-
-
Constructor Details
-
InvalidDataContainerException
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 constructedInvalidDataContainerException.
-
InvalidDataContainerException
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.
-
InvalidDataContainerException
public 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 constructedInvalidDataContainerException.invalidDataContainer- The data container that caused an exception when accessed/manipulated.
-
InvalidDataContainerException
public 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 constructedInvalidDataContainerException.
-
InvalidDataContainerException
public 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 constructedInvalidDataContainerException.
-
InvalidDataContainerException
public 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.
-
InvalidDataContainerException
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.
-
InvalidDataContainerException
public 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 Details
-
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.
-
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.
-
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.
-
getNodeID
public 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.
-
getNodeIteration
public 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.
-