public class InvalidAcquisitionException
extends com.highdeal.hci.OperationFailureException
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="invalidAcquisitionFault">
<xs:complexType>
<xs:attribute name="reason" type="InvalidAcquisitionReasonType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="InvalidAcquisitionReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="internalError"/>
<xs:enumeration value="sessionDoesNotExist"/>
<xs:enumeration value="sessionIsNull"/>
<xs:enumeration value="sessionIsAlreadyEnded"/>
<xs:enumeration value="invalidAcquisitionMode"/>
<xs:enumeration value="tooManyRunningSessions"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
ACQUISITION_SESSION_ALREADY_ENDED
2: The acquisition is already ended.
|
static int |
ACQUISITION_SESSION_DOES_NOT_EXIST
0: This error occurs when the acquisition session does not exist.
|
static int |
INTERNAL_ERROR
-1: Reserved for internal use.
|
static int |
INVALID_ACQUISITION_MODE
3: The specified acquisition mode is invalid.
|
static java.lang.String |
NAME |
static int |
NULL_ACQUISITION_SESSION
1: The acquisition session in parameter is null.
|
static int |
TOO_MANY_RUNNING_SESSIONS
4: There are too many running acquisition sessions to open a new one.
|
| Constructor and Description |
|---|
InvalidAcquisitionException()
Builds an empty InvalidAcquisitionException.
|
InvalidAcquisitionException(int reason)
Builds an InvalidAcquisitionException.
|
InvalidAcquisitionException(int reason,
java.lang.String operandReference)
Builds an InvalidAcquisitionException.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String |
getMessage()
Gets the message.
|
java.lang.String |
getOperandReference() |
int |
getReason()
Returns the reason of the exception.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
java.lang.String |
toString()
Returns the reason of the exception in readable format.
|
public static final int INTERNAL_ERROR
public static final int ACQUISITION_SESSION_DOES_NOT_EXIST
public static final int NULL_ACQUISITION_SESSION
public static final int ACQUISITION_SESSION_ALREADY_ENDED
public static final int INVALID_ACQUISITION_MODE
public static final int TOO_MANY_RUNNING_SESSIONS
public static final java.lang.String NAME
public InvalidAcquisitionException()
public InvalidAcquisitionException(int reason)
reason - The reason of the exceptionpublic InvalidAcquisitionException(int reason,
java.lang.String operandReference)
reason - The reason of the exceptionoperandReference - An operand reference such as faultly session ID
or description messagepublic int getReason()
public java.lang.String getOperandReference()
getOperandReference in interface com.highdeal.hci.OperationResultgetOperandReference in class com.highdeal.hci.OperationFailureExceptionpublic java.lang.String toString()
toString in class java.lang.Throwablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object into