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
// Configures using the `ARCADE_API_KEY` environment variable
@@ -160,7 +168,7 @@ The asynchronous client supports the same options as the synchronous one, except
160
168
161
169
The SDK throws custom unchecked exception types:
162
170
163
-
-[`ArcadeServiceException`](arcade-java-core/src/main/kotlin/com/arcade_engine/api/errors/ArcadeServiceException.kt): Base class for HTTP errors. See this table for which exception subclass is thrown for each HTTP status code:
171
+
-[`ArcadeServiceException`](arcade-java-core/src/main/kotlin/dev/arcade/errors/ArcadeServiceException.kt): Base class for HTTP errors. See this table for which exception subclass is thrown for each HTTP status code:
-[`ArcadeInvalidDataException`](arcade-java-core/src/main/kotlin/com/arcade_engine/api/errors/ArcadeInvalidDataException.kt): Failure to interpret successfully parsed data. For example, when accessing a property that's supposed to be required, but the API unexpectedly omitted it from the response.
186
+
-[`ArcadeInvalidDataException`](arcade-java-core/src/main/kotlin/dev/arcade/errors/ArcadeInvalidDataException.kt): Failure to interpret successfully parsed data. For example, when accessing a property that's supposed to be required, but the API unexpectedly omitted it from the response.
179
187
180
-
-[`ArcadeException`](arcade-java-core/src/main/kotlin/com/arcade_engine/api/errors/ArcadeException.kt): Base class for all exceptions. Most errors will result in one of the previously mentioned ones, but completely generic errors may be thrown using the base class.
188
+
-[`ArcadeException`](arcade-java-core/src/main/kotlin/dev/arcade/errors/ArcadeException.kt): Base class for all exceptions. Most errors will result in one of the previously mentioned ones, but completely generic errors may be thrown using the base class.
181
189
182
190
## Logging
183
191
@@ -214,8 +222,8 @@ The API may also explicitly instruct the SDK to retry or not retry a response.
214
222
To set a custom number of retries, configure the client using the `maxRetries` method:
@@ -281,8 +289,8 @@ The SDK is typed for convenient usage of the documented API. However, it also su
281
289
To set undocumented parameters, call the `putAdditionalHeader`, `putAdditionalQueryParam`, or `putAdditionalBodyProperty` methods on any `Params` class:
These can be accessed on the built object later using the `_additionalHeaders()`, `_additionalQueryParams()`, and `_additionalBodyProperties()` methods. You can also set undocumented parameters on nested headers, query params, or body classes using the `putAdditionalProperty` method. These properties can be accessed on the built object later using the `_additionalProperties()` method.
295
303
296
-
To set a documented parameter or property to an undocumented or not yet supported _value_, pass a [`JsonValue`](arcade-java-core/src/main/kotlin/com/arcade_engine/api/core/JsonValue.kt) object to its setter:
304
+
To set a documented parameter or property to an undocumented or not yet supported _value_, pass a [`JsonValue`](arcade-java-core/src/main/kotlin/dev/arcade/core/JsonValue.kt) object to its setter:
@@ -341,7 +349,7 @@ String result = secretPropertyValue.accept(new JsonValue.Visitor<>() {
341
349
To access a property's raw JSON value, which may be undocumented, call its `_` prefixed method:
342
350
343
351
```java
344
-
importcom.arcade_engine.api.core.JsonField;
352
+
importdev.arcade.core.JsonField;
345
353
importjava.util.Optional;
346
354
347
355
JsonField<Object> field = client.tools().execute(params)._field();
@@ -364,22 +372,22 @@ if (field.isMissing()) {
364
372
365
373
In rare cases, the API may return a response that doesn't match the expected type. For example, the SDK may expect a property to contain a `String`, but the API could return something else.
366
374
367
-
By default, the SDK will not throw an exception in this case. It will throw [`ArcadeInvalidDataException`](arcade-java-core/src/main/kotlin/com/arcade_engine/api/errors/ArcadeInvalidDataException.kt) only if you directly access the property.
375
+
By default, the SDK will not throw an exception in this case. It will throw [`ArcadeInvalidDataException`](arcade-java-core/src/main/kotlin/dev/arcade/errors/ArcadeInvalidDataException.kt) only if you directly access the property.
368
376
369
377
If you would prefer to check that the response is completely well-typed upfront, then either call `validate()`:
@@ -436,4 +444,4 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
436
444
437
445
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
438
446
439
-
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/arcade-engine-java/issues) with questions, bugs, or suggestions.
447
+
We are keen for your feedback; please open an [issue](https://www.github.com/ArcadeAI/arcade-java/issues) with questions, bugs, or suggestions.
0 commit comments