You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[`SDKBaseException`](./src/FormanceSDK/Models/Errors/SDKBaseException.cs): The base class for HTTP error responses.
87
88
88
-
**Less common exceptions (11)**
89
+
**Less common exceptions (9)**
89
90
90
91
*[`System.Net.Http.HttpRequestException`](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httprequestexception): Network connectivity error. For more details about the underlying cause, inspect the `ex.InnerException`.
91
92
92
93
* Inheriting from [`SDKBaseException`](./src/FormanceSDK/Models/Errors/SDKBaseException.cs):
93
94
*[`V3ErrorResponse`](./src/FormanceSDK/Models/Errors/V3ErrorResponse.cs): Error. Applicable to 57 of 249 methods.*
94
95
*[`PaymentsErrorResponse`](./src/FormanceSDK/Models/Errors/PaymentsErrorResponse.cs): Error. Applicable to 46 of 249 methods.*
95
-
*[`V2ErrorResponse`](./src/FormanceSDK/Models/Errors/V2ErrorResponse.cs): Applicable to 44 of 249 methods.*
96
-
*[`ErrorResponse`](./src/FormanceSDK/Models/Errors/ErrorResponse.cs): Applicable to 19 of 249 methods.*
96
+
*[`V2ErrorResponseError`](./src/FormanceSDK/Models/Errors/V2ErrorResponseError.cs): Applicable to 44 of 249 methods.*
97
+
*[`ErrorResponse`](./src/FormanceSDK/Models/Errors/ErrorResponse.cs): Applicable to 31 of 249 methods.*
98
+
*[`ErrorResponseError`](./src/FormanceSDK/Models/Errors/ErrorResponseError.cs): Applicable to 19 of 249 methods.*
97
99
*[`V2Error`](./src/FormanceSDK/Models/Errors/V2Error.cs): General error. Applicable to 18 of 249 methods.*
98
100
*[`Error`](./src/FormanceSDK/Models/Errors/Error.cs): General error. Applicable to 17 of 249 methods.*
99
-
*[`WalletsErrorResponse`](./src/FormanceSDK/Models/Errors/WalletsErrorResponse.cs): Applicable to 15 of 249 methods.*
100
-
*[`WebhooksErrorResponse`](./src/FormanceSDK/Models/Errors/WebhooksErrorResponse.cs): Error. Applicable to 8 of 249 methods.*
101
-
*[`ReconciliationErrorResponse`](./src/FormanceSDK/Models/Errors/ReconciliationErrorResponse.cs): Error response. Applicable to 8 of 249 methods.*
102
101
*[`ResponseValidationError`](./src/FormanceSDK/Models/Errors/ResponseValidationError.cs): Thrown when the response data could not be deserialized into the expected type.
103
102
104
103
\* Refer to the [relevant documentation](#available-resources-and-operations) to determine whether an exception applies to a specific operation.
105
104
<!-- End Error Handling [errors] -->
106
105
107
-
<!-- Start Server Selection [server] -->
108
-
## Server Selection
109
-
110
-
### Select Server by Index
111
-
112
-
You can override the default server globally by passing a server index to the `serverIndex: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
|`organization`|`organization: string`| string |`"orgID-stackID"`| The organization name. Defaults to a generic organization. |
124
-
|`environment`|`environment: FormanceSDK.Models.ServerEnvironment`| - `"eu.sandbox"`<br/>- `"eu-west-1"`<br/>- `"us-east-1"`|`"eu.sandbox"`| The environment name. Defaults to the production environment. |
125
-
126
-
#### Example
127
-
128
-
```csharp
129
-
usingFormanceSDK;
130
-
131
-
varsdk=newFormance(
132
-
serverIndex: 1,
133
-
organization: "orgID-stackID",
134
-
environment: "us-east-1"
135
-
);
136
-
137
-
varres=awaitsdk.GetVersionsAsync();
138
-
139
-
// handle response
140
-
```
141
-
142
-
### Override Server URL Per-Client
143
-
144
-
The default server can also be overridden globally by passing a URL to the `serverUrl: string` optional parameter when initializing the SDK client instance. For example:
0 commit comments