PartnerResponseParseException Class

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.

Constructor Summary

Constructor Description
PartnerResponseParseException()

Initializes a new instance of the PartnerResponseParseException class.

PartnerResponseParseException(String message)

Initializes a new instance of the PartnerResponseParseException class.

PartnerResponseParseException(String response, IRequestContext context, String message, Exception innerException)

Initializes a new instance of the PartnerResponseParseException class.

PartnerResponseParseException(String message, Exception innerException)

Initializes a new instance of the PartnerResponseParseException class.

Method Summary

Modifier and Type Method and Description
java.lang.String getResponse()

Gets the HTTP response payload that could not be parsed.

void setResponse(String value)

Sets the HTTP response payload that could not be parsed.

java.lang.String toString()

Displays the partner API network exception details.

Inherited Members

PartnerException.getContext() PartnerException.getErrorCategory() PartnerException.getServiceErrorPayload() PartnerException.setContext(IRequestContext value) PartnerException.setErrorCategory(PartnerErrorCategory value) PartnerException.setServiceErrorPayload(ApiFault value) PartnerException.toString() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int) java.lang.Throwable.addSuppressed(java.lang.Throwable) java.lang.Throwable.fillInStackTrace() java.lang.Throwable.getCause() java.lang.Throwable.getLocalizedMessage() java.lang.Throwable.getMessage() java.lang.Throwable.getStackTrace() java.lang.Throwable.getSuppressed() java.lang.Throwable.initCause(java.lang.Throwable) java.lang.Throwable.printStackTrace() java.lang.Throwable.printStackTrace(java.io.PrintStream) java.lang.Throwable.printStackTrace(java.io.PrintWriter) java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[])

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 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.

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.

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:

PartnerResponseParseException.toString()

Returns:

A string representing the network exception including the base and extended properties.

Applies to