1. Stylelabs.M.Sdk.Exceptions

Class WebApiException

Exception thrown when something goes wrong executing a web request.

Inheritance

object

WebApiException

Namespace: StylelabsStylelabs.MSdkExceptions

Assembly: Stylelabs.M.Sdk.dll

Syntax

public class WebApiException : Exception

Constructors

WebApiException(string, HttpStatusCode)

Initializes a new instance of the WebApiException class.

Declaration

public WebApiException(string message, HttpStatusCode statusCode)

Parameters

TypeNameDescription
stringmessageThe message describing the exception.
HttpStatusCodestatusCodeThe status code returned by the server.

Properties

StatusCode

Gets the status code returned by the server.

Declaration

public HttpStatusCode StatusCode { get; }

Property Value

TypeDescription
HttpStatusCode
If you have suggestions for improving this article, let us know!