/// <summary> /// Constructs MarketplaceWebServiceFeedsException 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 MarketplaceWebServiceFeedsReportsException( String message, HttpStatusCode statusCode, ResponseHeaderMetadata rhm ) : this(message) { this.statusCode = statusCode; this.responseHeaderMetadata = rhm; }
/// <summary> /// Constructs MarketplaceWebServiceFeedsException with message and wrapped exception /// </summary> /// <param name="message">Overview of error</param> /// <param name="t">Wrapped exception</param> public MarketplaceWebServiceFeedsReportsException( String message, Exception t ) : base(message, t) { this.message = message; if( t is MarketplaceWebServiceFeedsReportsException ) { MarketplaceWebServiceFeedsReportsException ex = ( MarketplaceWebServiceFeedsReportsException )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 MarketplaceWebServiceFeedsException 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 MarketplaceWebServiceFeedsReportsException( 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; }