Skip to content

Instantly share code, notes, and snippets.

@boserup
Created November 28, 2017 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boserup/d9f16c69cb222e57e4bf335371056769 to your computer and use it in GitHub Desktop.
Save boserup/d9f16c69cb222e57e4bf335371056769 to your computer and use it in GitHub Desktop.
catalogue.getEntries().parallelStream().forEach(
e -> {
try {
Product product = e.getProduct();
// ...
} catch (RemoteException exn) {
throw new Error("Remote failure: " + exn);
} catch (BadLocationException e) {
throw new Error("Internal error: bad text location in GUI");
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment