Class LiveChannelConditionNotAllowedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.ditto.base.model.exceptions.DittoRuntimeException
org.eclipse.ditto.things.model.signals.commands.exceptions.LiveChannelConditionNotAllowedException
All Implemented Interfaces:
Serializable, org.eclipse.ditto.base.model.headers.DittoHeadersSettable<org.eclipse.ditto.base.model.exceptions.DittoRuntimeException>, org.eclipse.ditto.base.model.headers.WithDittoHeaders, org.eclipse.ditto.base.model.headers.WithManifest, org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>, org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate<org.eclipse.ditto.json.JsonObject,org.eclipse.ditto.json.JsonField>, ThingException

@Immutable public final class LiveChannelConditionNotAllowedException extends org.eclipse.ditto.base.model.exceptions.DittoRuntimeException implements ThingException
Thrown when the live channel condition was used for e.g. modify commands where it is not supported.
Since:
2.3.0
See Also:
  • Field Details

  • Method Details

    • newBuilder

      Returns:
      the builder.
    • fromJson

      public static LiveChannelConditionNotAllowedException fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)
      Constructs a new LiveChannelConditionNotAllowedException object with the exception message extracted from the given JSON object.
      Parameters:
      jsonObject - the JSON to read the DittoRuntimeException.JsonFields.MESSAGE field from.
      dittoHeaders - the headers of the command which resulted in this exception.
      Returns:
      the new LiveChannelConditionNotAllowedException.
      Throws:
      NullPointerException - if any argument is null.
      org.eclipse.ditto.json.JsonMissingFieldException - if this JsonObject did not contain an error message.
      org.eclipse.ditto.json.JsonParseException - if the passed in jsonObject was not in the expected format.
    • setDittoHeaders

      public org.eclipse.ditto.base.model.exceptions.DittoRuntimeException setDittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)
      Specified by:
      setDittoHeaders in interface org.eclipse.ditto.base.model.headers.DittoHeadersSettable<org.eclipse.ditto.base.model.exceptions.DittoRuntimeException>