Package com.anthropic.models.beta.dreams
Class BetaDreamError
-
- All Implemented Interfaces:
public final class BetaDreamErrorFailure detail for a Dream whose
statusisfailed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaDreamError.BuilderA builder for BetaDreamError.
-
Method Summary
Modifier and Type Method Description final Stringmessage()A human-readable explanation of why the dream failed. final Stringtype()A code for why the dream failed, such as timeoutorinternal_error.final JsonField<String>_message()Returns the raw JSON value of message. final JsonField<String>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final BetaDreamError.BuildertoBuilder()final BetaDreamErrorvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaDreamError.Builderbuilder()Returns a mutable builder for constructing an instance of BetaDreamError. -
-
Method Detail
-
type
final String type()
A code for why the dream failed, such as
timeoutorinternal_error.The Dreams guide lists common error codes and when they occur.
-
_message
final JsonField<String> _message()
Returns the raw JSON value of message.
Unlike message, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<String> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaDreamError.Builder toBuilder()
-
validate
final BetaDreamError validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaDreamError.Builder builder()
Returns a mutable builder for constructing an instance of BetaDreamError.
The following fields are required:
.message() .type()
-
-
-
-