public class SchedulingException
extends com.highdeal.hci.OperationFailureException
CreateSchedulableJobOp,
Serialized FormThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="schedulingFault">
<xs:complexType>
<xs:attribute name="reason" type="SchedulingReasonType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="SchedulingReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="internalError"/>
<xs:enumeration value="tooManyJobsScheduled"/>
<xs:enumeration value="nullJob"/>
<xs:enumeration value="invalidJob"/>
<xs:enumeration value="doesNotExist"/>
<xs:enumeration value="invalidScheduling"/>
<xs:enumeration value="incompatibleChange"/>
<xs:enumeration value="cannotInitializeJob"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
CANNOT_INITIALIZE_JOB
The job can not be initialized.
|
static int |
INCOMPATIBLE_CHANGE
The job can not be modified.
|
static int |
INTERNAL_ERROR
Reserved for internal use.
|
static int |
INVALID_JOB
The job is not valid.
|
static int |
INVALID_SCHEDULING
The given scheduling is not valid.
|
static int |
JOB_DOES_NOT_EXIST
This job doesn't exist.
|
static int |
NULL_JOB
The job is null.
|
static int |
TOO_MANY_JOBS_SCHEDULED
Too many job are scheduled in the same time.
|
| Constructor and Description |
|---|
SchedulingException()
Builds an empty SchedulingException.
|
SchedulingException(int reason)
Builds an SchedulingException.
|
SchedulingException(int reason,
java.lang.String operandReference)
Builds an SchedulingException.
|
| 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 TOO_MANY_JOBS_SCHEDULED
public static final int NULL_JOB
public static final int INVALID_JOB
public static final int JOB_DOES_NOT_EXIST
public static final int INVALID_SCHEDULING
public static final int INCOMPATIBLE_CHANGE
public static final int CANNOT_INITIALIZE_JOB
public SchedulingException()
public SchedulingException(int reason)
reason - The reason of the exceptionpublic SchedulingException(int reason,
java.lang.String operandReference)
reason - The reason of the exceptionoperandReference - An operand reference such as faultly job IDpublic 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