Class ErrorEvent.Error
-
- All Implemented Interfaces:
public final class ErrorEvent.ErrorDetails of the error.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classErrorEvent.Error.BuilderA builder for Error.
-
Method Summary
Modifier and Type Method Description final Stringmessage()A human-readable error message. final Stringtype()The type of error (e.g., "invalid_request_error", "server_error"). final Optional<String>code()Error code, if any. final Optional<String>eventId()The event_id of the client event that caused the error, if applicable. final Optional<String>param()Parameter related to the error, if any. final JsonField<String>_message()Returns the raw JSON value of message. final JsonField<String>_type()Returns the raw JSON value of type. final JsonField<String>_code()Returns the raw JSON value of code. final JsonField<String>_eventId()Returns the raw JSON value of eventId. final JsonField<String>_param()Returns the raw JSON value of param. final Map<String, JsonValue>_additionalProperties()final ErrorEvent.Error.BuildertoBuilder()final ErrorEvent.Errorvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ErrorEvent.Error.Builderbuilder()Returns a mutable builder for constructing an instance of Error. -
-
Method Detail
-
eventId
final Optional<String> eventId()
The event_id of the client event that caused the error, if applicable.
-
_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.
-
_code
final JsonField<String> _code()
Returns the raw JSON value of code.
Unlike code, this method doesn't throw if the JSON field has an unexpected type.
-
_eventId
final JsonField<String> _eventId()
Returns the raw JSON value of eventId.
Unlike eventId, this method doesn't throw if the JSON field has an unexpected type.
-
_param
final JsonField<String> _param()
Returns the raw JSON value of param.
Unlike param, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ErrorEvent.Error.Builder toBuilder()
-
validate
final ErrorEvent.Error validate()
-
builder
final static ErrorEvent.Error.Builder builder()
Returns a mutable builder for constructing an instance of Error.
The following fields are required:
.message() .type()
-
-
-
-