PolicyIdMissingException extends DittoRuntimeException implements ThingException { public static PolicyIdMissingException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders) { return DittoRuntimeException.fromJson(jsonObject, dittoHeaders, new Builder()); } private  PolicyIdMissingException(final DittoHeaders dittoHeaders,
            @Nullable final String message,
            @Nullable final String description,
            @Nullable final Throwable cause,
            @Nullable final URI href); static PolicyIdMissingException fromThingIdOnUpdate(final ThingId thingId, final DittoHeaders dittoHeaders); static PolicyIdMissingException fromThingIdOnCreate(final ThingId thingId, final DittoHeaders dittoHeaders); static PolicyIdMissingException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); @Override JsonSchemaVersion[] getSupportedSchemaVersions(); static final String ERROR_CODE; }
@Test public void fromJson() { final PolicyIdMissingException exception = PolicyIdMissingException.fromJson(KNOWN_JSON, KNOWN_HEADERS); Assertions.assertThat(exception.getMessage()).isEqualTo(KNOWN_MESSAGE); }