\MarketplaceWebServiceProducts_Exception

Marketplace Web Service Products Exception provides details of errors returned by Marketplace Web Service Products service

Summary

Methods
Properties
Constants
__construct()
getErrorCode()
getErrorType()
getErrorMessage()
getStatusCode()
getXML()
getRequestId()
getResponseHeaderMetadata()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(array  $errorInfo = array()) 

Constructs MarketplaceWebServiceProducts_Exception

Parameters

array $errorInfo

details of exception. Keys are:

  • Message - (string) text message for an exception
  • StatusCode - (int) HTTP status code at the time of exception
  • ErrorCode - (string) specific error code returned by the service
  • ErrorType - (string) Possible types: Sender, Receiver or Unknown
  • RequestId - (string) request id returned by the service
  • XML - (string) compete xml response at the time of exception
  • Exception - (Exception) inner exception if any

getErrorCode()

getErrorCode() : string

Gets error type returned by the service if available.

Returns

string —

Error Code returned by the service

getErrorType()

getErrorType() : string

Gets error type returned by the service.

Returns

string —

Error Type returned by the service. Possible types: Sender, Receiver or Unknown

getErrorMessage()

getErrorMessage() : string

Gets error message

Returns

string —

Error message

getStatusCode()

getStatusCode() : integer

Gets status code returned by the service if available. If status code is set to -1, it means that status code was unavailable at the time exception was thrown

Returns

integer —

status code returned by the service

getXML()

getXML() : string

Gets XML returned by the service if available.

Returns

string —

XML returned by the service

getRequestId()

getRequestId() : string

Gets Request ID returned by the service if available.

Returns

string —

Request ID returned by the service

getResponseHeaderMetadata()

getResponseHeaderMetadata()