/// <summary>
 /// Creates a <see cref="SharePointRestServiceException"/> using the provided error type, http response code and request response
 /// </summary>
 /// <param name="type">Type of the error</param>
 /// <param name="httpResponseCode">Http response code of the service request</param>
 /// <param name="response">Response of the service request that errored out</param>
 public SharePointRestServiceException(ErrorType type, int httpResponseCode, string response) : base("SharePoint Rest service exception")
 {
     Error = new SharePointRestError(type, httpResponseCode, response);
 }
Example #2
0
 /// <summary>
 /// Creates a <see cref="SharePointRestServiceException"/> using the provided error type, http response code and request response
 /// </summary>
 /// <param name="type">Type of the error</param>
 /// <param name="httpResponseCode">Http response code of the service request</param>
 /// <param name="response">Response of the service request that errored out</param>
 /// <param name="responseHeaders">Optional collection of request response headers</param>
 public SharePointRestServiceException(ErrorType type, int httpResponseCode, string response, Dictionary <string, string> responseHeaders = null) : base("SharePoint Rest service exception")
 {
     Error = new SharePointRestError(type, httpResponseCode, response, responseHeaders);
 }