Class HttpException
Inheritance
System.Object
HttpException
Assembly: InfluxDB.Client.Core.dll
Syntax
public class HttpException : InfluxException
Constructors
HttpException(String, Int32, Exception)
Declaration
public HttpException(string message, int status, Exception exception = null)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.Int32 |
status |
|
Exception |
exception |
|
Properties
ErrorBody
The JSON unsuccessful response body.
Declaration
public JObject ErrorBody { get; set; }
Property Value
Declaration
public IEnumerable<HeaderParameter>? Headers { get; }
Property Value
Type |
Description |
System.Nullable<IEnumerable<HeaderParameter>> |
|
RetryAfter
The retry interval is used when the InfluxDB server does not specify "Retry-After" header.
Declaration
public int? RetryAfter { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
Methods
Create(HttpResponseMessage, Object)
Declaration
public static HttpException Create(HttpResponseMessage requestResult, object body)
Parameters
Type |
Name |
Description |
HttpResponseMessage |
requestResult |
|
System.Object |
body |
|
Returns
Create(RestResponse, Object)
Declaration
public static HttpException Create(RestResponse requestResult, object body)
Parameters
Type |
Name |
Description |
RestResponse |
requestResult |
|
System.Object |
body |
|
Returns
Declaration
public static HttpException Create(object content, IEnumerable<HeaderParameter> headers, string ErrorMessage, HttpStatusCode statusCode, Exception exception = null)
Parameters
Type |
Name |
Description |
System.Object |
content |
|
IEnumerable<HeaderParameter> |
headers |
|
System.String |
ErrorMessage |
|
HttpStatusCode |
statusCode |
|
Exception |
exception |
|
Returns