Class BadRequestException
Represents an exception thrown when a malformed request is sent.
Inheritance
System.Object
BadRequestException
Namespace: DSharpPlus.Exceptions
Assembly: cs.temp.dll.dll
Syntax
public class BadRequestException : Exception
Properties
Code
Gets the error code for this exception.
Declaration
public int Code { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Errors
Gets the form error responses in JSON format.
Declaration
public string Errors { get; }
Property Value
Type | Description |
---|---|
System.String |
JsonMessage
Gets the JSON message received.
Declaration
public string JsonMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
WebRequest
Gets the request that caused the exception.
Declaration
public BaseRestRequest WebRequest { get; }
Property Value
Type | Description |
---|---|
BaseRestRequest |
WebResponse
Gets the response to the request.
Declaration
public RestResponse WebResponse { get; }
Property Value
Type | Description |
---|---|
RestResponse |