/// <summary> /// Initializes a new instance. /// </summary> public SubmitErrorContextInfo( SubmitErrorErrorType errorType, string resourceUri = null, int? responseStatusCode = null, XElement[] responseHeaders = null, string responseReasonPhrase = "", object responseBody = null) { Contract.Requires<ArgumentNullException>(responseReasonPhrase != null); this.errorType = errorType; this.resourceUri = resourceUri; this.responseStatusCode = responseStatusCode; this.responseHeaders = responseHeaders; this.responseReasonPhrase = responseReasonPhrase; this.responseBody = responseBody; }
/// <summary> /// Initializes a new instance. /// </summary> public SubmitErrorContextInfo( SubmitErrorErrorType errorType, string resourceUri = null, int?responseStatusCode = null, XElement[] responseHeaders = null, string responseReasonPhrase = "", object responseBody = null) { Contract.Requires <ArgumentNullException>(responseReasonPhrase != null); this.errorType = errorType; this.resourceUri = resourceUri; this.responseStatusCode = responseStatusCode; this.responseHeaders = responseHeaders; this.responseReasonPhrase = responseReasonPhrase; this.responseBody = responseBody; }