HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Class ApiException

    Represents an exception that occurs during API operations.

    Inheritance
    object
    Exception
    ApiException
    BadRequestApiException
    ForbiddenApiException
    NotFoundApiException
    UnauthorizedApiException
    UserChangedApiException
    UserRequiredApiException
    ValidationApiException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    Namespace: Singulink.Net.Http.Api
    Assembly: Singulink.Net.Http.Api.dll
    Syntax
    public class ApiException : Exception, ISerializable

    Constructors

    Name Description
    ApiException(HttpStatusCode, string)

    Initializes a new instance of the ApiException class with a specified HTTP status code and error message.

    ApiException(HttpStatusCode, string, Exception?)

    Initializes a new instance of the ApiException class with a specified HTTP status code, error message and inner exception.

    Properties

    Name Description
    ErrorContent

    Gets the error content associated with the API exception if the error response was not in text/plain or a known/expected format.

    StatusCode

    Gets the HTTP status code associated with the API exception.

    © Singulink. All rights reserved.