/// <summary>
 /// Constructs MarketplaceWebServiceException with message and status code
 /// </summary>
 /// <param name="message">Overview of error</param>
 /// <param name="statusCode">HTTP status code for error response</param>
 /// <param name="rhm">Response Header Metadata</param>
 public MarketplaceWebServiceException(String message, HttpStatusCode statusCode, ResponseHeaderMetadata rhm)
     : this(message)
 {
     this.statusCode = statusCode;
     this.responseHeaderMetadata = rhm;
 }
 /// <summary>
 /// Constructs MarketplaceWebServiceException with message and wrapped exception
 /// </summary>
 /// <param name="message">Overview of error</param>
 /// <param name="t">Wrapped exception</param>
 public MarketplaceWebServiceException(String message, Exception t)
     : base(message, t)
 {
     this.message = message;
     if (t is MarketplaceWebServiceException)
     {
         MarketplaceWebServiceException ex = (MarketplaceWebServiceException)t;
         this.statusCode = ex.StatusCode;
         this.errorCode = ex.ErrorCode;
         this.errorType = ex.ErrorType;
         this.requestId = ex.RequestId;
         this.xml = ex.XML;
         this.responseHeaderMetadata = ex.ResponseHeaderMetadata;
     }
 }
 /// <summary>
 /// Constructs MarketplaceWebServiceException with information available from service
 /// </summary>
 /// <param name="message">Overview of error</param>
 /// <param name="statusCode">HTTP status code for error response</param>
 /// <param name="errorCode">Error Code returned by the service</param>
 /// <param name="errorType">Error type. Possible types:  Sender, Receiver or Unknown</param>
 /// <param name="requestId">Request ID returned by the service</param>
 /// <param name="xml">Compete xml found in response</param>
 /// <param name="rhm">Response Header Metadata</param>
 public MarketplaceWebServiceException(String message, HttpStatusCode statusCode, String errorCode, String errorType, String requestId, String xml, ResponseHeaderMetadata rhm)
     : this(message, statusCode, rhm)
 {
     this.errorCode = errorCode;
     this.errorType = errorType;
     this.requestId = requestId;
     this.xml = xml;
     this.responseHeaderMetadata = rhm;
 }