Class PartnerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.microsoft.store.partnercenter.exception.PartnerException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PartnerResponseParseException
public class PartnerException extends RuntimeException
The standard exception thrown by the partner SDK. This pertains to errors accessing the partner service. Other
standard exceptions such as null argument exceptions will also be thrown in case of malformed input.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PartnerException()Initializes a new instance of the PartnerException} class.PartnerException(ApiFault apiFault, IRequestContext context)Initializes a new instance of the PartnerException class.PartnerException(ApiFault apiFault, IRequestContext context, PartnerErrorCategory errorCategory)PartnerException(ApiFault apiFault, IRequestContext context, PartnerErrorCategory errorCategory, Exception innerException)PartnerException(String message)Initializes a new instance of the PartnerException class.PartnerException(String message, IRequestContext context, PartnerErrorCategory errorCategory)Initializes a new instance of the PartnerException class.PartnerException(String message, IRequestContext context, PartnerErrorCategory errorCategory, Exception innerException)Initializes a new instance of the PartnerException class.PartnerException(String message, Exception innerException)Initializes a new instance of the PartnerException class. -
Method Summary
Modifier and Type Method Description IRequestContextgetContext()PartnerErrorCategorygetErrorCategory()ApiFaultgetServiceErrorPayload()voidsetContext(IRequestContext value)voidsetErrorCategory(PartnerErrorCategory value)voidsetServiceErrorPayload(ApiFault value)StringtoString()Displays the partner exception details.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
PartnerException
public PartnerException()Initializes a new instance of the PartnerException} class. -
PartnerException
Initializes a new instance of the PartnerException class.- Parameters:
message- The exception message.
-
PartnerException
Initializes a new instance of the PartnerException 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.
-
PartnerException
public PartnerException(String message, IRequestContext context, PartnerErrorCategory errorCategory)Initializes a new instance of the PartnerException class.- Parameters:
message- The exception message.context- The partner context.errorCategory- The error category.
-
PartnerException
public PartnerException(String message, IRequestContext context, PartnerErrorCategory errorCategory, Exception innerException)Initializes a new instance of the PartnerException class.- Parameters:
message- The exception message.context- The partner context.errorCategory- The error category.innerException- The inner exception.
-
PartnerException
Initializes a new instance of the PartnerException class.- Parameters:
apiFault- The API fault object returned by the partner service.context- The partner context.
-
PartnerException
public PartnerException(ApiFault apiFault, IRequestContext context, PartnerErrorCategory errorCategory) -
PartnerException
public PartnerException(ApiFault apiFault, IRequestContext context, PartnerErrorCategory errorCategory, Exception innerException)
-
-
Method Details
-
getErrorCategory
-
setErrorCategory
-
getServiceErrorPayload
-
setServiceErrorPayload
-
getContext
-
setContext
-
toString
Displays the partner exception details.
-