Class StatelessPreRatingException

All Implemented Interfaces:
OperationResult, XMLMarshallable, Serializable

public class StatelessPreRatingException extends OperationFailureException
See Also:
  • Field Details

  • Constructor Details

    • StatelessPreRatingException

      public StatelessPreRatingException()
    • StatelessPreRatingException

      public StatelessPreRatingException(int reason, String message)
      Constructs an exception with an error code and a message. The message contains a human readable text.
      Parameters:
      reason - the reason.
      message - the message.
  • Method Details

    • getError

      public int getError()
      Returns the reason why the pre-rating failed.
      Returns:
      the error code.
    • getMessage

      public String getMessage()
      Returns the detailed message explaining why the pre-rating failed.
      Overrides:
      getMessage in class Throwable
      Returns:
      the detailed message.
    • 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
    • addChild

      public void addChild(String tagName, XMLMarshallable child)
      Description copied from interface: XMLMarshallable
      Adds a child to the object, the child representing the marshallable object which must be added to the element.
      Parameters:
      tagName - The name of tag for the child
      child - The child to be added
    • 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
    • marshal

      public void marshal(XMLOutputter output)
      Description copied from interface: XMLMarshallable
      Gives an XML representation of this object, including its children.
      Parameters:
      output - The XML output to marshal the object into
    • getReasonString

      public static final String getReasonString(int reason)
    • getReason

      public static final int getReason(String reasonString)