test_class.declarator: KNOWN_MESSAGE = "any Message"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_MESSAGE = "any Message";
test_class.type: String
test_class.var_name: KNOWN_MESSAGE
test_class.declarator: KNOWN_THING_ID = ThingId.of("org.eclipse.ditto", "a.thing")
test_class.modifier: private static final
test_class.original_string: private static final ThingId KNOWN_THING_ID = ThingId.of("org.eclipse.ditto", "a.thing");
test_class.type: ThingId
test_class.var_name: KNOWN_THING_ID
test_class.declarator: KNOWN_DESCRIPTION = "any description"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_DESCRIPTION = "any description";
test_class.type: String
test_class.var_name: KNOWN_DESCRIPTION
test_class.declarator: KNOWN_HREF = URI.create("any://href")
test_class.modifier: private static final
test_class.original_string: private static final URI KNOWN_HREF = URI.create("any://href");
test_class.type: URI
test_class.var_name: KNOWN_HREF
test_class.declarator: KNOWN_ERROR_CODE = PolicyIdMissingException.ERROR_CODE
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_ERROR_CODE = PolicyIdMissingException.ERROR_CODE;
test_class.type: String
test_class.var_name: KNOWN_ERROR_CODE
test_class.declarator: KNOWN_STATUS = HttpStatusCode.NOT_FOUND
test_class.modifier: private static final
test_class.original_string: private static final HttpStatusCode KNOWN_STATUS = HttpStatusCode.NOT_FOUND;
test_class.type: HttpStatusCode
test_class.var_name: KNOWN_STATUS
test_class.declarator: KNOWN_HEADERS = DittoHeaders.newBuilder()
              .schemaVersion(JsonSchemaVersion.V_1)
              .correlationId("any")
              .build()
test_class.modifier: private static final
test_class.original_string: private static final DittoHeaders KNOWN_HEADERS = DittoHeaders.newBuilder()
              .schemaVersion(JsonSchemaVersion.V_1)
              .correlationId("any")
              .build();
test_class.type: DittoHeaders
test_class.var_name: KNOWN_HEADERS
test_class.declarator: KNOWN_JSON = JsonFactory.newObjectBuilder()
              .set(DittoRuntimeException.JsonFields.STATUS, KNOWN_STATUS.toInt())
              .set(DittoRuntimeException.JsonFields.ERROR_CODE, KNOWN_ERROR_CODE)
              .set(DittoRuntimeException.JsonFields.MESSAGE, KNOWN_MESSAGE)
              .set(DittoRuntimeException.JsonFields.DESCRIPTION, KNOWN_DESCRIPTION)
              .set(DittoRuntimeException.JsonFields.HREF, KNOWN_HREF.toString())
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_JSON = JsonFactory.newObjectBuilder()
              .set(DittoRuntimeException.JsonFields.STATUS, KNOWN_STATUS.toInt())
              .set(DittoRuntimeException.JsonFields.ERROR_CODE, KNOWN_ERROR_CODE)
              .set(DittoRuntimeException.JsonFields.MESSAGE, KNOWN_MESSAGE)
              .set(DittoRuntimeException.JsonFields.DESCRIPTION, KNOWN_DESCRIPTION)
              .set(DittoRuntimeException.JsonFields.HREF, KNOWN_HREF.toString())
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_JSON
test_class.file: model/things/src/test/java/org/eclipse/ditto/model/things/PolicyIdMissingExceptionTest.java
test_class.identifier: PolicyIdMissingExceptionTest
test_case.body: @Test
      public void fromThingIdOnUpdate() {
          final PolicyIdMissingException exception =
                  PolicyIdMissingException.fromThingIdOnUpdate(KNOWN_THING_ID, KNOWN_HEADERS);
          Assertions.assertThat(exception.getMessage()).contains(KNOWN_THING_ID.toString());
      }
test_case.class_method_signature: PolicyIdMissingExceptionTest.fromThingIdOnUpdate()
test_case.full_signature: @Test public void fromThingIdOnUpdate()
test_case.identifier: fromThingIdOnUpdate
test_case.invocations: fromThingIdOnUpdate contains assertThat getMessage toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void fromThingIdOnUpdate()
focal_class.declarator: ERROR_CODE = ERROR_CODE_PREFIX + "policy.id.missing"
focal_class.modifier: public static final
focal_class.original_string: public static final String ERROR_CODE = ERROR_CODE_PREFIX + "policy.id.missing";
focal_class.type: String
focal_class.var_name: ERROR_CODE
focal_class.declarator: MESSAGE_TEMPLATE_UPDATE =
              "The schema version of the Thing with ID ''{0}'' does not allow an update on schema version ''{1}'' " +
                      "without providing a policy id"
focal_class.modifier: private static final
focal_class.original_string: private static final String MESSAGE_TEMPLATE_UPDATE =
              "The schema version of the Thing with ID ''{0}'' does not allow an update on schema version ''{1}'' " +
                      "without providing a policy id";
focal_class.type: String
focal_class.var_name: MESSAGE_TEMPLATE_UPDATE
focal_class.declarator: DEFAULT_DESCRIPTION_UPDATE =
              "When updating a schema version 1 Thing using a higher schema version API, you need to add a policyId. " +
                      "Be aware that this will convert the Thing to the higher schema version, thus removing all ACL " +
                      "information from it."
focal_class.modifier: private static final
focal_class.original_string: private static final String DEFAULT_DESCRIPTION_UPDATE =
              "When updating a schema version 1 Thing using a higher schema version API, you need to add a policyId. " +
                      "Be aware that this will convert the Thing to the higher schema version, thus removing all ACL " +
                      "information from it.";
focal_class.type: String
focal_class.var_name: DEFAULT_DESCRIPTION_UPDATE
focal_class.declarator: MESSAGE_TEMPLATE_CREATE =
              "The schema version of the Thing with ID ''{0}'' (''{1}'') does not allow creation without " +
                      "providing a policy id"
focal_class.modifier: private static final
focal_class.original_string: private static final String MESSAGE_TEMPLATE_CREATE =
              "The schema version of the Thing with ID ''{0}'' (''{1}'') does not allow creation without " +
                      "providing a policy id";
focal_class.type: String
focal_class.var_name: MESSAGE_TEMPLATE_CREATE
focal_class.declarator: DEFAULT_DESCRIPTION_CREATE =
              "You need to specify a policy id."
focal_class.modifier: private static final
focal_class.original_string: private static final String DEFAULT_DESCRIPTION_CREATE =
              "You need to specify a policy id.";
focal_class.type: String
focal_class.var_name: DEFAULT_DESCRIPTION_CREATE
focal_class.declarator: DEFAULT_DESCRIPTION_GENERIC =
              "Either you need to specific a PolicyId or when updating " +
                      "a schema version 1 Thing using a higher schema version API, you need to add a policyId. " +
                      "Be aware that this will convert the Thing to the higher schema version, thus removing all ACL " +
                      "information from it."
focal_class.modifier: private static final
focal_class.original_string: private static final String DEFAULT_DESCRIPTION_GENERIC =
              "Either you need to specific a PolicyId or when updating " +
                      "a schema version 1 Thing using a higher schema version API, you need to add a policyId. " +
                      "Be aware that this will convert the Thing to the higher schema version, thus removing all ACL " +
                      "information from it.";
focal_class.type: String
focal_class.var_name: DEFAULT_DESCRIPTION_GENERIC
focal_class.declarator: serialVersionUID = -2640894758584381867L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -2640894758584381867L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.file: model/things/src/main/java/org/eclipse/ditto/model/things/PolicyIdMissingException.java
focal_class.identifier: PolicyIdMissingException
focal_class.interfaces: implements ThingException
focal_class.class_method_signature: PolicyIdMissingException.PolicyIdMissingException(final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.full_signature: private  PolicyIdMissingException(final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.identifier: PolicyIdMissingException
focal_class.modifiers: private
focal_class.parameters: (final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.signature:  PolicyIdMissingException(final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.class_method_signature: PolicyIdMissingException.fromThingIdOnUpdate(final ThingId thingId, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static PolicyIdMissingException fromThingIdOnUpdate(final ThingId thingId, final DittoHeaders dittoHeaders)
focal_class.identifier: fromThingIdOnUpdate
focal_class.modifiers: public static
focal_class.parameters: (final ThingId thingId, final DittoHeaders dittoHeaders)
focal_class.return: PolicyIdMissingException
focal_class.signature: PolicyIdMissingException fromThingIdOnUpdate(final ThingId thingId, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: PolicyIdMissingException.fromThingIdOnCreate(final ThingId thingId, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static PolicyIdMissingException fromThingIdOnCreate(final ThingId thingId, final DittoHeaders dittoHeaders)
focal_class.identifier: fromThingIdOnCreate
focal_class.modifiers: public static
focal_class.parameters: (final ThingId thingId, final DittoHeaders dittoHeaders)
focal_class.return: PolicyIdMissingException
focal_class.signature: PolicyIdMissingException fromThingIdOnCreate(final ThingId thingId, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: PolicyIdMissingException.fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static PolicyIdMissingException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.return: PolicyIdMissingException
focal_class.signature: PolicyIdMissingException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: PolicyIdMissingException.getSupportedSchemaVersions()
focal_class.full_signature: @Override public JsonSchemaVersion[] getSupportedSchemaVersions()
focal_class.identifier: getSupportedSchemaVersions
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonSchemaVersion[]
focal_class.signature: JsonSchemaVersion[] getSupportedSchemaVersions()
focal_class.superclass: extends DittoRuntimeException
focal_method.body: public static PolicyIdMissingException fromThingIdOnUpdate(final ThingId thingId, final DittoHeaders dittoHeaders) {
          final JsonSchemaVersion schemaVersion = dittoHeaders.getSchemaVersion().orElse(JsonSchemaVersion.LATEST);
          return new Builder(thingId, schemaVersion, MESSAGE_TEMPLATE_UPDATE, DEFAULT_DESCRIPTION_UPDATE)
                  .dittoHeaders(dittoHeaders)
                  .build();
      }
focal_method.class_method_signature: PolicyIdMissingException.fromThingIdOnUpdate(final ThingId thingId, final DittoHeaders dittoHeaders)
focal_method.full_signature: public static PolicyIdMissingException fromThingIdOnUpdate(final ThingId thingId, final DittoHeaders dittoHeaders)
focal_method.identifier: fromThingIdOnUpdate
focal_method.invocations: orElse getSchemaVersion build dittoHeaders
focal_method.modifiers: public static
focal_method.parameters: (final ThingId thingId, final DittoHeaders dittoHeaders)
focal_method.return: PolicyIdMissingException
focal_method.signature: PolicyIdMissingException fromThingIdOnUpdate(final ThingId thingId, final DittoHeaders dittoHeaders)