Class PartnerResponseParseException

All Implemented Interfaces:
Serializable

public class PartnerResponseParseException
extends PartnerException
This exception is thrown by PartnerServiceClient objects when they fail to parse the response according to the caller's expectations.
See Also:
Serialized Form
  • Constructor Details

    • PartnerResponseParseException

      public PartnerResponseParseException()
      Initializes a new instance of the PartnerResponseParseException class.
    • PartnerResponseParseException

      public PartnerResponseParseException​(String message)
      Initializes a new instance of the PartnerResponseParseException class.
      Parameters:
      message - The exception message.
    • PartnerResponseParseException

      public PartnerResponseParseException​(String message, Exception innerException)
      Initializes a new instance of the PartnerResponseParseException class.
      Parameters:
      message - The exception message.
      innerException - The exception that is the cause of the current exception, or a null reference if no inner exception is specified.
    • PartnerResponseParseException

      public PartnerResponseParseException​(String response, IRequestContext context, String message, Exception innerException)
      Initializes a new instance of the PartnerResponseParseException class.
      Parameters:
      response - The HTTP response payload which could not be parsed.
      context - The partner context.
      message - The exception message.
      innerException - The exception that is the cause of the current exception, or a null reference if no inner exception is specified.
  • Method Details

    • getResponse

      public String getResponse()
      Gets the HTTP response payload that could not be parsed.
      Returns:
      The HTTP response payload that could not be parsed.
    • setResponse

      public void setResponse​(String value)
      Sets the HTTP response payload that could not be parsed.
      Parameters:
      value - The HTTP response payload that could not be parsed.
    • toString

      public String toString()
      Displays the partner API network exception details.
      Overrides:
      toString in class PartnerException
      Returns:
      A string representing the network exception including the base and extended properties.