Table of Contents

Class RestException

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class RestException : Exception, ISerializable
Inheritance
RestException
Implements
Inherited Members

Constructors

RestException(HttpStatusCode, string?)

public RestException(HttpStatusCode statusCode, string? reasonPhrase)

Parameters

statusCode HttpStatusCode
reasonPhrase string

RestException(HttpStatusCode, string?, RestError)

public RestException(HttpStatusCode statusCode, string? reasonPhrase, RestError error)

Parameters

statusCode HttpStatusCode
reasonPhrase string
error RestError

Properties

Error

public RestError? Error { get; }

Property Value

RestError

ReasonPhrase

public string? ReasonPhrase { get; }

Property Value

string

StatusCode

public HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode