Class JsonRequestException
Represents errors that occurs requesting a JSON file through HTTP.
Inherited Members
Namespace: Swan.Net
Syntax
[Serializable]
public class JsonRequestException : Exception, ISerializable, _Exception
Constructors
JsonRequestException(Uri, HttpMethod, Int32, String)
Initializes a new instance of the JsonRequestException class.
Declaration
public JsonRequestException(Uri url, HttpMethod method, int httpErrorCode = 500, string errorContent = null)
Parameters
Type | Name | Description |
---|---|---|
Uri | url | The URL. |
HttpMethod | method | The method. |
Int32 | httpErrorCode | The HTTP error code. |
String | errorContent | Content of the error. |
Properties
HttpErrorCode
Gets the HTTP error code.
Declaration
public int HttpErrorCode { get; }
Property Value
Type | Description |
---|---|
Int32 | The HTTP error code. |
HttpErrorContent
Gets the content of the HTTP error.
Declaration
public string HttpErrorContent { get; }
Property Value
Type | Description |
---|---|
String | The content of the HTTP error. |
Method
Gets the method.
Declaration
public HttpMethod Method { get; }
Property Value
Type | Description |
---|---|
HttpMethod | The method. |
Url
Gets the URL.
Declaration
public Uri Url { get; }
Property Value
Type | Description |
---|---|
Uri | The URL. |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |