public class InvalidDataContainerException
extends java.lang.Exception
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.| Modifier and Type | Field and Description |
|---|---|
protected java.util.UUID |
instanceID
The instance ID that the data container is expected to be of (but is not).
|
protected InputDataContainer |
invalidDataContainer
The data container that has caused this exception.
|
protected java.lang.String |
invalidParameterName
The name of the parameter that has behaved unexpectedly, for instance, the
parameter is mandatory but not provided by the data container.
|
protected int |
nodeID
The node ID that the data container is expected to be of (but is not).
|
protected int |
nodeIteration
The node iteration that the data container is expected to be of (but is
not).
|
| Constructor and Description |
|---|
InvalidDataContainerException(DataContainer invalidDataContainer,
java.lang.String invalidParameterName,
java.lang.Throwable cause)
Constructs a new
InvalidDataContainerException raised by the
designated cause while accessing/manipulating the designated data container
with the designated parameter name. |
InvalidDataContainerException(DataContainer invalidDataContainer,
java.lang.Throwable cause)
Constructs a new
InvalidDataContainerException raised by the
designated cause while accessing/manipulating the designated data
container. |
InvalidDataContainerException(InputDataContainer invalidDataContainer,
java.lang.String invalidParameterName)
Constructs a new
InvalidDataContainerException to indicate
that the designated data container does not contain the expected data. |
InvalidDataContainerException(InputDataContainer invalidDataContainer,
java.lang.String invalidParameterName,
java.lang.Throwable cause)
Constructs a new
InvalidDataContainerException raised by the
designated cause while accessing/manipulating the designated data container
with the designated parameter name. |
InvalidDataContainerException(InputDataContainer invalidDataContainer,
java.util.UUID instanceID,
int nodeID,
int nodeIteration)
Constructs a new
InvalidDataContainerException to indicate
that the designated data container does not correspond to the node
information when flushed. |
InvalidDataContainerException(java.lang.String msg,
DataContainer invalidDataContainer)
Constructs a new
InvalidDataContainerException for the designated data container
with the designated arbitrary message. |
InvalidDataContainerException(java.lang.String msg,
java.lang.Throwable cause,
DataContainer invalidDataContainer)
Constructs a new
InvalidDataContainerException raised by the designated cause
while accessing/manipulating the designated data container with the designated arbitrary
message. |
| Modifier and Type | Method and Description |
|---|---|
java.util.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.
|
InputDataContainer |
getInvalidDataContainer()
Gets the data container that caused this exception.
|
java.lang.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.
|
int |
getNodeID()
Gets the node ID that the data container is expected to be of (but is not)
or
de.aristaflow.adept2.model.globals.CommonConstants#INT_ID_NOT_EXISTING
in case this exception has not been raised due to wrong node information
when flushed. |
int |
getNodeIteration()
Gets the node iteration that the data container is expected to be of (but
is not) or
de.aristaflow.adept2.model.globals.CommonConstants#INT_ID_NOT_EXISTING
in case this exception has not been raised due to wrong node information
when flushed. |
protected final InputDataContainer invalidDataContainer
protected final java.lang.String invalidParameterName
protected final java.util.UUID instanceID
protected final int nodeID
protected final int nodeIteration
public InvalidDataContainerException(DataContainer invalidDataContainer, java.lang.Throwable cause)
InvalidDataContainerException raised by the
designated cause while accessing/manipulating the designated data
container.invalidDataContainer - The data container that caused an exception
when accessed/manipulated.cause - The cause that led to the constructed
InvalidDataContainerException.public InvalidDataContainerException(java.lang.String msg,
DataContainer invalidDataContainer)
InvalidDataContainerException for the designated data container
with the designated arbitrary message.msg - An arbitrary message for the exception.invalidDataContainer - The data container that caused an exception when
accessed/manipulated.public InvalidDataContainerException(java.lang.String msg,
java.lang.Throwable cause,
DataContainer invalidDataContainer)
InvalidDataContainerException raised by the designated cause
while accessing/manipulating the designated data container with the designated arbitrary
message.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.public InvalidDataContainerException(DataContainer invalidDataContainer, java.lang.String invalidParameterName, java.lang.Throwable cause)
InvalidDataContainerException raised by the
designated cause while accessing/manipulating the designated data container
with the designated parameter name. 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.public InvalidDataContainerException(InputDataContainer invalidDataContainer, java.lang.String invalidParameterName, java.lang.Throwable cause)
InvalidDataContainerException raised by the
designated cause while accessing/manipulating the designated data container
with the designated parameter name. 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.public InvalidDataContainerException(InputDataContainer invalidDataContainer, java.lang.String invalidParameterName)
InvalidDataContainerException to indicate
that the designated data container does not contain the expected data. 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.public InvalidDataContainerException(InputDataContainer invalidDataContainer, java.util.UUID instanceID, int nodeID, int nodeIteration)
InvalidDataContainerException to indicate
that the designated data container does not correspond to the node
information when flushed.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).public InputDataContainer getInvalidDataContainer()
public java.lang.String getInvalidParameterName()
public java.util.UUID getInstanceID()
public int getNodeID()
de.aristaflow.adept2.model.globals.CommonConstants#INT_ID_NOT_EXISTING
in case this exception has not been raised due to wrong node information
when flushed.de.aristaflow.adept2.model.globals.CommonConstants#INT_ID_NOT_EXISTING.public int getNodeIteration()
de.aristaflow.adept2.model.globals.CommonConstants#INT_ID_NOT_EXISTING
in case this exception has not been raised due to wrong node information
when flushed.de.aristaflow.adept2.model.globals.CommonConstants#INT_ID_NOT_EXISTING.