Package com.highdeal.admin.hci
Class InvalidInstanceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.admin.hci.InvalidInstanceException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Exception thrown when an error occurs.
The possible reasons are:
- Service available rather than it is forbidden
- Service not available rather than it is mandatory
Address is already used- Incompatible instance type
- Service is for all instances or no instance
- Too many backups
- Wrong instance ID for unique backup
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThisenumerationlists the possible reasons for theinvalid instance exception. -
Constructor Summary
ConstructorsConstructorDescriptionInvalidInstanceException(InvalidInstanceException.Reason reason, InstanceId instanceId) InvalidInstanceException(InvalidInstanceException.Reason reason, InstanceId instanceId, ServiceInfo.ServiceInfoType serviceInfoType) InvalidInstanceException(InvalidInstanceException.Reason reason, ServiceInfo.Address address) InvalidInstanceException(InvalidInstanceException.Reason reason, ServiceInfo.Address address, InstanceId instanceId1, InstanceId instanceId2) InvalidInstanceException(InvalidInstanceException.Reason reason, ServiceInfo.ServiceInfoType serviceInfoType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String data) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.Methods inherited from class com.highdeal.hci.OperationFailureException
getOperandReferenceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidInstanceException
public InvalidInstanceException() -
InvalidInstanceException
public InvalidInstanceException(InvalidInstanceException.Reason reason, ServiceInfo.ServiceInfoType serviceInfoType) -
InvalidInstanceException
public InvalidInstanceException(InvalidInstanceException.Reason reason, InstanceId instanceId, ServiceInfo.ServiceInfoType serviceInfoType) -
InvalidInstanceException
-
InvalidInstanceException
public InvalidInstanceException(InvalidInstanceException.Reason reason, ServiceInfo.Address address, InstanceId instanceId1, InstanceId instanceId2) -
InvalidInstanceException
public InvalidInstanceException(InvalidInstanceException.Reason reason, ServiceInfo.Address address) -
InvalidInstanceException
-
-
Method Details
-
getChildren
-
getReason
-
getInstanceId1
-
getInstanceId2
-
getServiceInfoType
-
getMessage
- Overrides:
getMessagein classThrowable
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
data- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Parameters:
output- TheXML outputto marshal the object into
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-