Class ResponseErrorEvent
-
- All Implemented Interfaces:
public final class ResponseErrorEventEmitted when an error occurs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseErrorEvent.BuilderA builder for ResponseErrorEvent.
-
Method Summary
Modifier and Type Method Description final Optional<String>code()The error code. final Stringmessage()The error message. final Optional<String>param()The error parameter. final LongsequenceNumber()The sequence number of this event. final JsonValue_type()The type of the event. final JsonField<String>_code()Returns the raw JSON value of code. final JsonField<String>_message()Returns the raw JSON value of message. final JsonField<String>_param()Returns the raw JSON value of param. final JsonField<Long>_sequenceNumber()Returns the raw JSON value of sequenceNumber. final Map<String, JsonValue>_additionalProperties()final ResponseErrorEvent.BuildertoBuilder()final ResponseErrorEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseErrorEvent.Builderbuilder()Returns a mutable builder for constructing an instance of ResponseErrorEvent. -
-
Method Detail
-
sequenceNumber
final Long sequenceNumber()
The sequence number of this event.
-
_type
final JsonValue _type()
The type of the event. Always
error.Expected to always return the following:
JsonValue.from("error")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_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.
-
_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.
-
_sequenceNumber
final JsonField<Long> _sequenceNumber()
Returns the raw JSON value of sequenceNumber.
Unlike sequenceNumber, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseErrorEvent.Builder toBuilder()
-
validate
final ResponseErrorEvent validate()
-
builder
final static ResponseErrorEvent.Builder builder()
Returns a mutable builder for constructing an instance of ResponseErrorEvent.
The following fields are required:
.code() .message() .param() .sequenceNumber()
-
-
-
-