public final class UnknownCommandResponseException
extends org.eclipse.ditto.model.base.exceptions.DittoRuntimeException
CommandResponse is not supported.| Modifier and Type | Class and Description |
|---|---|
static class |
UnknownCommandResponseException.Builder
A mutable builder with a fluent API for a
UnknownCommandResponseException. |
org.eclipse.ditto.model.base.exceptions.DittoRuntimeException.JsonFieldsorg.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelectorAndPredicate<T>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPointer<J extends org.eclipse.ditto.json.JsonValue>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<J extends org.eclipse.ditto.json.JsonValue,T>| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_CODE
Error code of this exception.
|
| Modifier and Type | Method and Description |
|---|---|
static UnknownCommandResponseException |
fromJson(org.eclipse.ditto.json.JsonObject jsonObject,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Constructs a new
UnknownCommandResponseException object with the exception message extracted from the
given JSON object. |
static UnknownCommandResponseException |
fromMessage(String message,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Constructs a new
UnknownCommandResponseException object with given message. |
static UnknownCommandResponseException.Builder |
newBuilder(String responseName)
A mutable builder for a
UnknownCommandResponseException. |
appendToJson, asDittoRuntimeException, equals, fromUnknownErrorJson, getBuilder, getDescription, getDittoHeaders, getEmptyBuilder, getErrorCode, getHref, getImplementedSchemaVersion, getManifest, getStatusCode, hashCode, newBuilder, newBuilder, readDescription, readHRef, readMessage, setDittoHeaders, toJson, toJson, toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final String ERROR_CODE
public static UnknownCommandResponseException.Builder newBuilder(String responseName)
UnknownCommandResponseException.responseName - the response not supported.public static UnknownCommandResponseException fromMessage(String message, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
UnknownCommandResponseException object with given message.message - detail message. This message can be later retrieved by the Throwable.getMessage() method.dittoHeaders - the headers of the command which resulted in this exception.public static UnknownCommandResponseException fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
UnknownCommandResponseException object with the exception message extracted from the
given JSON object.jsonObject - the JSON to read the DittoRuntimeException.JsonFields#MESSAGE field from.dittoHeaders - the headers of the command which resulted in this exception.org.eclipse.ditto.json.JsonMissingFieldException - if the jsonObject does not have the DittoRuntimeException.JsonFields#MESSAGE field.Copyright © 2017–2019 Eclipse Foundation. All rights reserved.