public Member member(String memberId) { final Member member = memberOrDefault(memberId, null); if (member != null) { return member; } throw new EntryNotFoundException(memberId); }
public Member member(String memberId) { final Member member = memberOrDefault(memberId, null); if (member != null) { return member; } throw new EntryNotFoundException(memberId); }
public Member member(String memberId) { final Member member = memberOrDefault(memberId, null); if (member != null) { return member; } throw new EntryNotFoundException(memberId); }
/** * Retrieves an {@link Entry} at the specified {@code path}. * * @throws EntryNotFoundException if there's no entry at the specified {@code path} * * @see #getOrNull(Revision, String) */ default CompletableFuture<Entry<?>> get(Revision revision, String path) { return getOrNull(revision, path).thenApply(entry -> { if (entry == null) { throw new EntryNotFoundException(revision, path); } return entry; }); }
/** * Retrieves an {@link Entry} at the specified {@code path}. * * @throws EntryNotFoundException if there's no entry at the specified {@code path} * * @see #getOrNull(Revision, String) */ default CompletableFuture<Entry<?>> get(Revision revision, String path) { return getOrNull(revision, path).thenApply(entry -> { if (entry == null) { throw new EntryNotFoundException(revision, path); } return entry; }); }
/** * Retrieves an {@link Entry} at the specified {@code path}. * * @throws EntryNotFoundException if there's no entry at the specified {@code path} * * @see #getOrNull(Revision, String) */ default CompletableFuture<Entry<?>> get(Revision revision, String path) { return getOrNull(revision, path).thenApply(entry -> { if (entry == null) { throw new EntryNotFoundException(revision, path); } return entry; }); }
/** * Performs the specified {@link Query}. * * @throws EntryNotFoundException if there's no entry at the path specified in the {@link Query} * * @see #getOrNull(Revision, Query) */ default <T> CompletableFuture<Entry<T>> get(Revision revision, Query<T> query) { return getOrNull(revision, query).thenApply(res -> { if (res == null) { throw new EntryNotFoundException(revision, query.path()); } return res; }); }
/** * Performs the specified {@link Query}. * * @throws EntryNotFoundException if there's no entry at the path specified in the {@link Query} * * @see #getOrNull(Revision, Query) */ default <T> CompletableFuture<Entry<T>> get(Revision revision, Query<T> query) { return getOrNull(revision, query).thenApply(res -> { if (res == null) { throw new EntryNotFoundException(revision, query.path()); } return res; }); }
/** * Performs the specified {@link Query}. * * @throws EntryNotFoundException if there's no entry at the path specified in the {@link Query} * * @see #getOrNull(Revision, Query) */ default <T> CompletableFuture<Entry<T>> get(Revision revision, Query<T> query) { return getOrNull(revision, query).thenApply(res -> { if (res == null) { throw new EntryNotFoundException(revision, query.path()); } return res; }); }
final List<JsonNode> jsonNodes = jsonNodesBuilder.build(); if (jsonNodes.isEmpty()) { throw new EntryNotFoundException(revision, concatenatePaths(query.mergeSources()));
final List<JsonNode> jsonNodes = jsonNodesBuilder.build(); if (jsonNodes.isEmpty()) { throw new EntryNotFoundException(revision, concatenatePaths(query.mergeSources()));
throw new EntryNotFoundException(path + " (" + from + ", " + to + ')');
throw new EntryNotFoundException(path + " (" + from + ", " + to + ')');
throw new EntryNotFoundException(path + " (" + from + ", " + to + ')');
break; case ENTRY_NOT_FOUND: convertedCause = new EntryNotFoundException(message, false); break; case REDUNDANT_CHANGE:
break; case ENTRY_NOT_FOUND: convertedCause = new EntryNotFoundException(message, false); break; case REDUNDANT_CHANGE:
break; case ENTRY_NOT_FOUND: convertedCause = new EntryNotFoundException(message, false); break; case REDUNDANT_CHANGE: