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
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -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`: 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/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:
-`ArcadeInvalidDataException`: 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/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.
179
179
180
-
-`ArcadeException`: 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/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.
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` 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/org/arcadeai/api/core/JsonValue.kt) object to its setter:
297
297
298
298
```java
299
299
importorg.arcadeai.api.models.ExecuteToolRequest;
@@ -364,7 +364,7 @@ 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` 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/org/arcadeai/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