Class InvalidOperationErrorException

All Implemented Interfaces:
IErrorException, IXMLMarshallable, OperationResult, XMLMarshallable, Serializable

public class InvalidOperationErrorException extends OperationFailureErrorException
Generic exception thrown when a prerequisite of the master data is missing.
See Also:

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="invalidOperationError">
   <xs:complexType>
     <xs:sequence>
       <xs:element ref="cause" minOccurs="1" maxOccurs="1"/>
       <xs:element ref="causedBy" minOccurs="0" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>

  • Field Details

    • TAG_NAME

      public static final String TAG_NAME
      The XML tag name of the XML representation: "invalidOperationError"
      See Also:
  • Constructor Details

    • InvalidOperationErrorException

      public InvalidOperationErrorException()
      Builds an empty exception.
    • InvalidOperationErrorException

      public InvalidOperationErrorException(IError error)
      Builds an exception with the error which has triggered it.
      Parameters:
      error - The error which has triggered the exception
    • InvalidOperationErrorException

      public InvalidOperationErrorException(IError error, OperationFailureErrorException exception)
      Builds an exception with an error, the Operation Failure which has triggered it.
      Parameters:
      error - The error of the exception
      exception - The exception which has triggered the current one
    • InvalidOperationErrorException

      public InvalidOperationErrorException(IError error, Throwable throwable)
      Builds an exception with an error, the Throwable which has triggered it.
      Parameters:
      error - The error of the exception
      throwable - The throwable which has triggered the current one
  • Method Details

    • setAttributes

      public void setAttributes(XMLAttributes atts)
      Description copied from interface: XMLMarshallable
      Sets the attributes of the XML representation of the element being processed.
      Parameters:
      atts - The XML attributes of the current element
    • addCharacterData

      public void addCharacterData(String cData)
      Description copied from interface: XMLMarshallable
      Adds character data to the content element.
      Parameters:
      cData - The character data to be added
    • getTagName

      public String getTagName()
      Description copied from class: OperationFailureErrorException
      Gets the XML tag name of the HCI model.
      Specified by:
      getTagName in class OperationFailureErrorException
      Returns:
      The XML tag name
    • marshalAttributes

      public void marshalAttributes(XMLOutputter output)
      Description copied from interface: IXMLMarshallable
      Gives an XML representation of the attributes of an object.
      Parameters:
      output - The XML output to marshal the object attributes into