Class SharePointRestServiceException
Microsoft SharePoint REST Service exception
public class SharePointRestServiceException : ServiceException, ISerializable
- Inheritance
-
SharePointRestServiceException
- Implements
- Inherited Members
Constructors
SharePointRestServiceException(ErrorType, int, string, Dictionary<string, string>)
Creates a SharePointRestServiceException using the provided error type, http response code and request response
public SharePointRestServiceException(ErrorType type, int httpResponseCode, string response, Dictionary<string, string> responseHeaders = null)
Parameters
typeErrorTypeType of the error
httpResponseCodeintHttp response code of the service request
responsestringResponse of the service request that errored out
responseHeadersDictionary<string, string>Optional collection of request response headers
Methods
ToString()
Outputs a SharePointRestServiceException to a string representation
public override string ToString()
Returns
- string
String representation