Class AclInvalidException

  • All Implemented Interfaces:
    Serializable, org.eclipse.ditto.model.base.headers.WithDittoHeaders<org.eclipse.ditto.model.base.exceptions.DittoRuntimeException>, org.eclipse.ditto.model.base.headers.WithManifest, org.eclipse.ditto.model.base.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<org.eclipse.ditto.json.JsonObject,​org.eclipse.ditto.json.JsonField>, ThingException

    @Deprecated
    @Immutable
    public final class AclInvalidException
    extends org.eclipse.ditto.model.base.exceptions.DittoRuntimeException
    implements ThingException
    Deprecated.
    AccessControlLists belong to deprecated API version 1. Use API version 2 with policies instead.
    This exception indicates that the ACL of a Thing is invalid for some reason. The cause of this exception is documented in the message.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AclInvalidException.Builder
      Deprecated.
      A mutable builder with a fluent API for a AclInvalidException.
      • Nested classes/interfaces inherited from class org.eclipse.ditto.model.base.exceptions.DittoRuntimeException

        org.eclipse.ditto.model.base.exceptions.DittoRuntimeException.JsonFields
      • Nested classes/interfaces inherited from interface org.eclipse.ditto.model.base.json.Jsonifiable

        org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelectorAndPredicate<T extends Object>, 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 extends Object>
    • Method Detail

      • newBuilder

        public static AclInvalidException.Builder newBuilder​(@Nullable
                                                             ThingId thingId)
        Deprecated.
        A mutable builder for a AclInvalidException.
        Parameters:
        thingId - the identifier of the Thing.
        Returns:
        the builder.
      • fromMessage

        public static AclInvalidException fromMessage​(String message,
                                                      org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
        Deprecated.
        Constructs a new AclInvalidException object with the given exception message.
        Parameters:
        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.
        Returns:
        the new AclInvalidException.
      • fromJson

        public static AclInvalidException fromJson​(org.eclipse.ditto.json.JsonObject jsonObject,
                                                   org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
        Deprecated.
        Constructs a new AclInvalidException 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 AclInvalidException.
        Throws:
        org.eclipse.ditto.json.JsonMissingFieldException - if the jsonObject does not have the DittoRuntimeException.JsonFields.MESSAGE field.
      • getSupportedSchemaVersions

        public org.eclipse.ditto.model.base.json.JsonSchemaVersion[] getSupportedSchemaVersions()
        Deprecated.
        Specified by:
        getSupportedSchemaVersions in interface org.eclipse.ditto.model.base.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>