Class WebApiException
Version: 4.0
Exception thrown when something goes wrong executing a web request.
Inheritance
object
WebApiException
Namespace: StylelabsStylelabs.MSdkExceptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public class WebApiException : Exception
Constructors
WebApiException(string, HttpStatusCode)
Initializes a new instance of the WebApiException class.
Declaration
RequestResponse
public WebApiException(string message, HttpStatusCode statusCode)
Parameters
Type | Name | Description |
---|---|---|
string | message |
The message describing the exception. |
HttpStatusCode | statusCode |
The status code returned by the server. |
Properties
StatusCode
Gets the status code returned by the server.
Declaration
RequestResponse
public HttpStatusCode StatusCode { get; }
Property Value
Type | Description |
---|---|
HttpStatusCode |