Skip to content

Instantly share code, notes, and snippets.

@okram
Created July 22, 2013 17:31
Show Gist options
  • Select an option

  • Save okram/6055829 to your computer and use it in GitHub Desktop.

Select an option

Save okram/6055829 to your computer and use it in GitHub Desktop.
catch (final Exception e) {
if (this.graph instanceof TransactionalGraph) {
((TransactionalGraph) this.graph).rollback();
context.getCounter(Counters.FAILED_TRANSACTIONS).increment(1l);
}
throw new IOException(e.getMessage(), e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment