EveClientException
NexusLabs.Eve¶
EveClientException Class¶
Represents a non-successful HTTP response returned by an eve route.
Inheritance System.Object → System.Exception → System.Net.Http.HttpRequestException → EveClientException
Constructors¶
EveClientException() Constructor¶
Initializes an exception without an HTTP response.
EveClientException(string) Constructor¶
Initializes an exception with a message but without an HTTP response.
Parameters¶
message System.String
The error message.
EveClientException(string, Exception) Constructor¶
Initializes an exception with a message and inner exception but without an HTTP response.
Parameters¶
message System.String
The error message.
innerException System.Exception
The underlying exception.
Properties¶
EveClientException.ErrorCode Property¶
Gets the stable machine-readable error code reported by the server, or null when the response carried none.
Property Value¶
Remarks¶
eve 0.31.0 exposes a stable code alongside the human-readable message, so
callers can branch on a condition such as HTTP 409 session_not_active without
parsing ResponseBody. The value is deliberately left as the raw string so
an unmodelled future code stays observable.
EveClientException.ResponseBody Property¶
Gets the raw response body.
Property Value¶
EveClientException.ResponseHeaders Property¶
Gets the response headers keyed case-insensitively.
public System.Collections.Generic.IReadOnlyDictionary<string,System.Collections.Generic.IReadOnlyList<string>> ResponseHeaders { get; }
Property Value¶
System.Collections.Generic.IReadOnlyDictionary<System.String,System.Collections.Generic.IReadOnlyList<System.String>>