JsonPointerInvalidException extends JsonRuntimeException { static JsonExceptionBuilder<JsonPointerInvalidException> newBuilderForConsecutiveSlashes( final CharSequence jsonPointer) { return new Builder() .jsonPointer(jsonPointer) .description(MULTIPLE_SLASHES_DESCRIPTION); } private  JsonPointerInvalidException(@Nullable final String message,
            @Nullable final String description,
            @Nullable final Throwable cause,
            @Nullable final URI href); static Builder newBuilder(); static JsonExceptionBuilder<JsonPointerInvalidException> newBuilderForOuterSlashes(
            final CharSequence jsonPointer); static final String ERROR_CODE; }
@Test public void testNewBuilderForConsecutiveSlashes() { final String jsonPointer = "/ns/thing/features final JsonPointerInvalidException exception = JsonPointerInvalidException.newBuilderForConsecutiveSlashes(jsonPointer).build(); assertThat(exception) .hasMessageContaining(jsonPointer) .satisfies(e -> assertThat(((JsonPointerInvalidException) e).getDescription()) .contains("Consecutive slashes in JSON pointers are not supported.")); }