Class WebApiException

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
TypeNameDescription
stringmessage

The message describing the exception.

HttpStatusCodestatusCode

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
TypeDescription
HttpStatusCode

Do you have some feedback for us?

If you have suggestions for improving this article,