public class MarketplaceWebServiceException extends Exception
| Constructor and Description |
|---|
MarketplaceWebServiceException(String message)
Constructs MarketplaceWebServiceException with message
|
MarketplaceWebServiceException(String message,
int statusCode,
ResponseHeaderMetadata metadata)
Constructs MarketplaceWebServiceException with message and status code
|
MarketplaceWebServiceException(String message,
int statusCode,
String errorCode,
String errorType,
String requestId,
String xml,
ResponseHeaderMetadata metadata)
Constructs MarketplaceWebServiceException with information available from service
|
MarketplaceWebServiceException(String message,
Throwable t)
Constructs MarketplaceWebServiceException with message and wrapped exception
|
MarketplaceWebServiceException(Throwable t)
Constructs MarketplaceWebServiceException with wrapped exception
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
Gets error code returned by the service if available.
|
String |
getErrorType()
Gets error type returned by the service if available.
|
String |
getMessage()
Gets error message
|
String |
getRequestId()
Gets Request ID returned by the service if available.
|
ResponseHeaderMetadata |
getResponseHeaderMetadata() |
int |
getStatusCode()
Gets status code returned by the service if available.
|
String |
getXML()
Gets XML returned by the service if available.
|
void |
setResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MarketplaceWebServiceException(String message)
message - Overview of errorpublic MarketplaceWebServiceException(String message, int statusCode, ResponseHeaderMetadata metadata)
message - Overview of errorstatusCode - HTTP status code for error responsepublic MarketplaceWebServiceException(Throwable t)
t - wrapped exceptionpublic MarketplaceWebServiceException(String message, Throwable t)
message - Overview of errort - wrapped exceptionpublic MarketplaceWebServiceException(String message, int statusCode, String errorCode, String errorType, String requestId, String xml, ResponseHeaderMetadata metadata)
message - Overview of errorstatusCode - HTTP status code for error responseerrorCode - Error Code returned by the serviceerrorType - Error type. Possible types: Sender, Receiver or UnknownrequestId - Request ID returned by the servicexml - Compete xml found in responsepublic String getErrorCode()
public String getErrorType()
public String getMessage()
getMessage in class Throwablepublic int getStatusCode()
public String getXML()
public String getRequestId()
public void setResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata)
public ResponseHeaderMetadata getResponseHeaderMetadata()
Copyright © 2020. All rights reserved.