Class WebApiException
Version: 3.2
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 : ExceptionConstructors
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 |