logo
logo
  • Class WebApiException

    Exception thrown when something goes wrong executing a web request.

    Inheritance
    System.Object
    WebApiException
    Namespace: Stylelabs.M.Sdk.Exceptions
    Assembly: Stylelabs.M.Sdk.dll
    Syntax
    public class WebApiException : Exception

    Constructors

    WebApiException(String, HttpStatusCode)

    Creates a new instance of WebApiException.

    Declaration
    public WebApiException(string message, HttpStatusCode statusCode)
    Parameters
    Type Name Description
    System.String message

    The message describing the exception.

    HttpStatusCode statusCode

    The status code returned by the server.

    Properties

    StatusCode

    The status code returned by the server.

    Declaration
    public HttpStatusCode StatusCode { get; }
    Property Value
    Type Description
    HttpStatusCode

    Can we improve this article ? Provide feedback