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
@@ -160,7 +160,7 @@ The asynchronous client supports the same options as the synchronous one, except
160
160
161
161
The SDK throws custom unchecked exception types:
162
162
163
-
-[`ArcadeServiceException`](arcade-java-core/src/main/kotlin/org/arcadeai/api/errors/ArcadeServiceException.kt): Base class for HTTP errors. See this table for which exception subclass is thrown for each HTTP status code:
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:
-[`ArcadeInvalidDataException`](arcade-java-core/src/main/kotlin/org/arcadeai/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.
178
+
-[`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.
179
179
180
-
-[`ArcadeException`](arcade-java-core/src/main/kotlin/org/arcadeai/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.
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.
181
181
182
182
## Logging
183
183
@@ -214,8 +214,8 @@ The API may also explicitly instruct the SDK to retry or not retry a response.
214
214
To set a custom number of retries, configure the client using the `maxRetries` method:
@@ -281,8 +281,8 @@ The SDK is typed for convenient usage of the documented API. However, it also su
281
281
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
295
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/org/arcadeai/api/core/JsonValue.kt) object to its setter:
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:
@@ -341,8 +341,8 @@ String result = secretPropertyValue.accept(new JsonValue.Visitor<>() {
341
341
To access a property's raw JSON value, which may be undocumented, call its `_` prefixed method:
342
342
343
343
```java
344
+
importcom.arcade_engine.api.core.JsonField;
344
345
importjava.util.Optional;
345
-
importorg.arcadeai.api.core.JsonField;
346
346
347
347
JsonField<Object> field = client.tools().execute(params)._field();
348
348
@@ -364,22 +364,22 @@ if (field.isMissing()) {
364
364
365
365
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
366
367
-
By default, the SDK will not throw an exception in this case. It will throw [`ArcadeInvalidDataException`](arcade-java-core/src/main/kotlin/org/arcadeai/api/errors/ArcadeInvalidDataException.kt) only if you directly access the property.
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.
368
368
369
369
If you would prefer to check that the response is completely well-typed upfront, then either call `validate()`:
0 commit comments