Exception that IAuthleteApi
methods may throw.
More...
|
| AuthleteApiException (string message, Exception cause, HttpRequestMessage request) |
| Constructor without information about an HTTP response. More...
|
|
| AuthleteApiException (string message, Exception cause, HttpRequestMessage request, HttpStatusCode statusCode, string reasonPhrase, HttpResponseHeaders headers) |
| Constructor with some data of an HTTP response. More...
|
|
| AuthleteApiException (string message, HttpRequestMessage request, HttpStatusCode statusCode, string reasonPhrase, HttpResponseHeaders headers, string body) |
| Constructor with some data of an HTTP response. More...
|
|
|
HttpRequestMessage | Request [get] |
| The HTTP request to the Authlete API. More...
|
|
HttpStatusCode | StatusCode [get] |
| The HTTP status code of the response from the Authlete API. This property will return null if an error occurred before the response was properly processed. More...
|
|
string | ReasonPhrase [get] |
| The reason phrase of the response from the Authlete API. This property will return null if an error occurred before the response was properly processed. More...
|
|
HttpResponseHeaders | ResponseHeaders [get] |
| The HTTP headers of the response from the Authlete API. This property will return null if an error occurred before the response was properly processed. More...
|
|
string | ResponseBody [get] |
| The content of the response from the Authlete API. This property will return null if the response did not have any content or if an error occurred before the response was properly processed. More...
|
|
Exception that IAuthleteApi
methods may throw.
◆ AuthleteApiException() [1/3]
Constructor without information about an HTTP response.
- Parameters
-
- Parameters
-
cause | The cause of this exception. |
- Parameters
-
request | The request to the API that triggered this exception. |
◆ AuthleteApiException() [2/3]
AuthleteApiException |
( |
string |
message, |
|
|
Exception |
cause, |
|
|
HttpRequestMessage |
request, |
|
|
HttpStatusCode |
statusCode, |
|
|
string |
reasonPhrase, |
|
|
HttpResponseHeaders |
headers |
|
) |
| |
|
inline |
Constructor with some data of an HTTP response.
- Parameters
-
- Parameters
-
cause | The cause of this exception. |
- Parameters
-
request | The request to the API that triggered this exception. |
- Parameters
-
statusCode | The HTTP status code of the response from the API. |
- Parameters
-
reasonPhrase | The reason phrase of the response from the API. |
- Parameters
-
headers | The HTTP headers of the response from the API. |
◆ AuthleteApiException() [3/3]
AuthleteApiException |
( |
string |
message, |
|
|
HttpRequestMessage |
request, |
|
|
HttpStatusCode |
statusCode, |
|
|
string |
reasonPhrase, |
|
|
HttpResponseHeaders |
headers, |
|
|
string |
body |
|
) |
| |
|
inline |
Constructor with some data of an HTTP response.
- Parameters
-
- Parameters
-
request | The request to the API that triggered this exception. |
- Parameters
-
statusCode | The HTTP status code of the response from the API. |
- Parameters
-
reasonPhrase | The reason phrase of the response from the API. |
- Parameters
-
headers | The HTTP headers of the response from the API. |
- Parameters
-
body | The entity body of the response from the API. |
◆ ReasonPhrase
The reason phrase of the response from the Authlete API. This property will return null
if an error occurred before the response was properly processed.
◆ Request
HttpRequestMessage Request |
|
get |
The HTTP request to the Authlete API.
◆ ResponseBody
The content of the response from the Authlete API. This property will return null
if the response did not have any content or if an error occurred before the response was properly processed.
◆ ResponseHeaders
HttpResponseHeaders ResponseHeaders |
|
get |
The HTTP headers of the response from the Authlete API. This property will return null
if an error occurred before the response was properly processed.
◆ StatusCode
HttpStatusCode StatusCode |
|
get |
The HTTP status code of the response from the Authlete API. This property will return null
if an error occurred before the response was properly processed.
The documentation for this class was generated from the following file:
- Authlete/Api/AuthleteApiException.cs