Class UpdateRateException

All Implemented Interfaces:
OperationResult, XMLMarshallable, Serializable

public class UpdateRateException extends OperationFailureException
Exception thrown when the Update Rate operation failed due to several possible reasons.
See Also:

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="updateRateFault">
   <xs:complexType>
     <xs:sequence>
       <xs:element ref="serverFault" minOccurs="0" maxOccurs="1"/>
       <xs:element ref="stopRateFault" minOccurs="0" maxOccurs="1"/>
       <xs:element ref="startRateFault" minOccurs="0" maxOccurs="1"/>
       <xs:element ref="stopRateResult" minOccurs="0" maxOccurs="1"/>
     </xs:sequence>
     <xs:attribute name="reason" type="UpdateRateFaultType"/>
     <xs:attribute name="message" type="xs:string"/>
   </xs:complexType>
 </xs:element>
<xs:simpleType name="UpdateRateFaultType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="invalidSessionID"/>
     <xs:enumeration value="invalidResultType"/>
     <xs:enumeration value="noSessionFound"/>
     <xs:enumeration value="notEnoughSpace"/>
     <xs:enumeration value="sessionNotAccessible"/>
    </xs:restriction>
 </xs:simpleType>

  • Field Details

    • INVALID_SESSION_ID

      public static final int INVALID_SESSION_ID
      The session is not valid or missing for instance.
      See Also:
    • INVALID_RESULT_TYPE

      public static final int INVALID_RESULT_TYPE
      The result type is not a valid one.
      See Also:
    • NO_SESSION_FOUND

      public static final int NO_SESSION_FOUND
      The session is not found.
      See Also:
    • NOT_ENOUGH_SPACE

      public static final int NOT_ENOUGH_SPACE
      There is not enough space on to store a session.
      See Also:
    • SESSION_NOT_ACCESSIBLE

      public static final int SESSION_NOT_ACCESSIBLE
      The session is linked to an access different than those of the update operation.
      See Also:
  • Constructor Details

    • UpdateRateException

      public UpdateRateException()
      Constructs an empty udpate exception.
    • UpdateRateException

      public UpdateRateException(StopRateException e)
      Constructs an udpate exception from a stop rate exception.
    • UpdateRateException

      public UpdateRateException(StartRateException e)
      Constructs an udpate exception from a start rate exception.
    • UpdateRateException

      public UpdateRateException(ServerFailureException e)
      Constructs an udpate exception from a server failure exception on a start rate.
    • UpdateRateException

      public UpdateRateException(int reason, String message)
      Constructs an udpate exception with a reason and a message.
      Parameters:
      reason - The reason
      message - The message
    • UpdateRateException

      public UpdateRateException(int reason, String message, StopRateException e)
      Constructs an udpate exception with a reason and a message.
      Parameters:
      reason - The reason
      message - The message
    • UpdateRateException

      public UpdateRateException(int reason, String message, StartRateException e)
      Constructs an udpate exception with a reason and a message.
      Parameters:
      reason - The reason
      message - The message
  • Method Details