public class InvalidDataTypeException
extends java.lang.Exception
InvalidDataTypeException indicates the non-conformance of
an expected data type with the actual data type. For instance, an integer is
expected but the designated data element is of reference-type.| Modifier and Type | Field and Description |
|---|---|
protected ProcessConstants.AdeptDataType |
actualDataType
The ADEPT2-data element type of which the data element actually is.
|
protected java.lang.Integer |
dataElementID
The ID of the data element which has been requested but is of the wrong
type or null in case this exception has been raised when accessing a
parameter.
|
protected ProcessConstants.AdeptDataType |
expectedDataType
The ADEPT2-data element type that is expected by the caller of a
datamanager-method.
|
protected java.util.UUID |
instanceID
The ID of the process instance of which a data element has been requested
which is of the wrong type or null in case this exception has been raised
when accessing a parameter.
|
protected java.lang.String |
parameterName
The name of the parameter which has been requested and which is of the
wrong type.
|
| Constructor and Description |
|---|
InvalidDataTypeException(java.lang.String parameterName,
ProcessConstants.AdeptDataType expectedDataType,
ProcessConstants.AdeptDataType actualDataType)
Constructs a new
InvalidDataTypeException to indicate that the
designated expected data type of the designated parameter does not
correspond to the actual data type. |
InvalidDataTypeException(java.lang.String msg,
java.lang.String parameterName,
ProcessConstants.AdeptDataType parameterType)
Constructs a new
InvalidDataTypeException to indicate that the
designated data type of the designated parameter does not correspond to the
encountered type. |
InvalidDataTypeException(java.util.UUID instanceID,
int dataElementID,
ProcessConstants.AdeptDataType expectedDataType,
ProcessConstants.AdeptDataType actualDataType)
Constructs a new
InvalidDataTypeException to indicate that the
designated expected data type of the designated data element does not
correspond to the actual data type. |
| Modifier and Type | Method and Description |
|---|---|
ProcessConstants.AdeptDataType |
getActualDataType()
Gets the ADEPT2-data element type that is expected by the caller of a
datamanager-method.
|
java.lang.Integer |
getDataElementID()
Gets the ID of the data element which has been requested but is of the
wrong type.
|
ProcessConstants.AdeptDataType |
getExpectedDataType()
The ADEPT2-data element type of which the data element actually is.
|
java.util.UUID |
getInstanceID()
Gets the ID of the process instance of which a data element has been
requested which is of the wrong type.
|
java.lang.String |
getParameterName()
Gets the name of the parameter which has been requested and which is of the
wrong type.
|
protected final java.lang.String parameterName
protected final java.util.UUID instanceID
protected final java.lang.Integer dataElementID
protected final ProcessConstants.AdeptDataType expectedDataType
protected final ProcessConstants.AdeptDataType actualDataType
public InvalidDataTypeException(java.lang.String parameterName,
ProcessConstants.AdeptDataType expectedDataType,
ProcessConstants.AdeptDataType actualDataType)
InvalidDataTypeException to indicate that the
designated expected data type of the designated parameter does not
correspond to the actual data type.parameterName - The name of the parameter which has been requested and
which is of the wrong type.expectedDataType - The data type that the caller expected when
invoking the method that leads to this exception. This may be null
to indicate that the expected data type is unknown, for instance
when switching over the actual data type.actualDataType - The actual data type of the data element that the
caller designated. Can be null if the data element is not
existent.public InvalidDataTypeException(java.lang.String msg,
java.lang.String parameterName,
ProcessConstants.AdeptDataType parameterType)
InvalidDataTypeException to indicate that the
designated data type of the designated parameter does not correspond to the
encountered type. Further information has to be provided via the message!msg - The message providing additional information on the type
conversion that does not work.parameterName - The name of the parameter which is of the wrong type.parameterType - The data type of the parameter which is incompatible
with the encountered type.public InvalidDataTypeException(java.util.UUID instanceID,
int dataElementID,
ProcessConstants.AdeptDataType expectedDataType,
ProcessConstants.AdeptDataType actualDataType)
InvalidDataTypeException to indicate that the
designated expected data type of the designated data element does not
correspond to the actual data type.instanceID - The ID of the process instance of which a data element
has been requested which is of the wrong type.dataElementID - The ID of the data element which has been requested
but is of the wrong type.expectedDataType - The data type that the caller expected when
invoking the method that leads to this exception. This may be null
to indicate that the expected data type is unknown, for instance
when switching over the actual data type.actualDataType - The actual data type of the data element that the
caller designated. Can be null if the data element is not
existent.public java.lang.String getParameterName()
public java.util.UUID getInstanceID()
public java.lang.Integer getDataElementID()
public ProcessConstants.AdeptDataType getActualDataType()
public ProcessConstants.AdeptDataType getExpectedDataType()