PolicyInvalidException extends DittoRuntimeException implements ThingException { public static Builder newBuilder(final Collection<String> permissions, final ThingId thingId) { checkNotNull(permissions, "permissions"); checkNotNull(thingId, "thingId"); return new Builder(permissions, thingId); } private  PolicyInvalidException(final DittoHeaders dittoHeaders,
            @Nullable final String message,
            @Nullable final String description,
            @Nullable final Throwable cause,
            @Nullable final URI href); static Builder newBuilder(final Collection<String> permissions, final ThingId thingId); static Builder newBuilderForCause(final Throwable cause, final ThingId thingId); static PolicyInvalidException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); @Override JsonSchemaVersion[] getSupportedSchemaVersions(); static final String ERROR_CODE; }
@Test public void copy() { final DittoRuntimeException copy = DittoRuntimeException.newBuilder(TestConstants.Thing.POLICY_INVALID_EXCEPTION).build(); assertThat(copy).isEqualTo(TestConstants.Thing.POLICY_INVALID_EXCEPTION); }