Class PartnerResponseParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.microsoft.store.partnercenter.exception.PartnerException
com.microsoft.store.partnercenter.exception.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 Summary
Constructors 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 Description StringgetResponse()Gets the HTTP response payload that could not be parsed.voidsetResponse(String value)Sets the HTTP response payload that could not be parsed.StringtoString()Displays the partner API network exception details.Methods inherited from class com.microsoft.store.partnercenter.exception.PartnerException
getContext, getErrorCategory, getServiceErrorPayload, setContext, setErrorCategory, setServiceErrorPayloadMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
PartnerResponseParseException
public PartnerResponseParseException()Initializes a new instance of the PartnerResponseParseException class. -
PartnerResponseParseException
Initializes a new instance of the PartnerResponseParseException class.- Parameters:
message- The exception message.
-
PartnerResponseParseException
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
Gets the HTTP response payload that could not be parsed.- Returns:
- The HTTP response payload that could not be parsed.
-
setResponse
Sets the HTTP response payload that could not be parsed.- Parameters:
value- The HTTP response payload that could not be parsed.
-
toString
Displays the partner API network exception details.- Overrides:
toStringin classPartnerException- Returns:
- A string representing the network exception including the base and extended properties.
-