Represents errors that occur from error API responses.
More...
|
|
| ApiException (string message, int statusCode, IReadOnlyDictionary< string, IEnumerable< string > > headers, ProblemDetails problemDetails, Exception innerException) |
| |
|
| static ApiException | Create (IEnumerable< ProblemDetails > problemDetailsToConvert) |
| | Create an ApiException.
|
| |
| static ApiException | Create (int statusCode, IReadOnlyDictionary< string, IEnumerable< string > > headers, Exception innerException) |
| | Create an ApiException.
|
| |
| static ApiException | Create (int statusCode, IReadOnlyDictionary< string, IEnumerable< string > > headers, ProblemDetails problemDetails, Exception innerException) |
| | Create an ApiException with a Client.ProblemDetails.
|
| |
| static ApiException | Create (int statusCode, IReadOnlyDictionary< string, IEnumerable< string > > headers, string response, JsonSerializerSettings jsonSerializerSettings, Exception innerException) |
| | Create an ApiException. Will try to deserialize the response to a Client.ProblemDetails.
|
| |
|
|
IReadOnlyDictionary< string, IEnumerable< string > > | Headers [get] |
| | The API response headers.
|
| |
|
ProblemDetails | ProblemDetails [get] |
| | The API error details.
|
| |
|
int | StatusCode [get] |
| | The API status code.
|
| |
Represents errors that occur from error API responses.
◆ Create() [1/4]
Create an ApiException.
- Returns
- ApiException
◆ Create() [2/4]
| static ApiException Create |
( |
int |
statusCode, |
|
|
IReadOnlyDictionary< string, IEnumerable< string > > |
headers, |
|
|
Exception |
innerException |
|
) |
| |
|
inlinestatic |
Create an ApiException.
- Parameters
-
| statusCode | The response status code. |
| headers | The response headers. |
| innerException | The inner exception. |
- Returns
- ApiException
◆ Create() [3/4]
| static ApiException Create |
( |
int |
statusCode, |
|
|
IReadOnlyDictionary< string, IEnumerable< string > > |
headers, |
|
|
ProblemDetails |
problemDetails, |
|
|
Exception |
innerException |
|
) |
| |
|
inlinestatic |
Create an ApiException with a Client.ProblemDetails.
- Parameters
-
| statusCode | The response status code. |
| headers | The response headers. |
| problemDetails | The Client.ProblemDetails response. |
| innerException | The inner exception. |
- Returns
- ApiException
◆ Create() [4/4]
| static ApiException Create |
( |
int |
statusCode, |
|
|
IReadOnlyDictionary< string, IEnumerable< string > > |
headers, |
|
|
string |
response, |
|
|
JsonSerializerSettings |
jsonSerializerSettings, |
|
|
Exception |
innerException |
|
) |
| |
|
inlinestatic |
Create an ApiException. Will try to deserialize the response to a Client.ProblemDetails.
- Parameters
-
| statusCode | The response status code. |
| headers | The response headers. |
| response | The response body. |
| jsonSerializerSettings | The json serializer settings used to deserialize the response. |
| innerException | The inner exception. |
- Returns
- ApiException
The documentation for this class was generated from the following file: