Throwable.addSuppressed(Throwable) and Throwable.initCause(Throwable) where
appropriate instead.ArithmeticException if the given integer is
zero.throw e or throw new RuntimeException(e) directly. Prefer multi-caches if applicable.
For more elaborate scenarios, have a look at Exceptions.throwIfUnchecked(Throwable) and
Exceptions.throwIfInstanceOf(Throwable, Class)
For a more furrow explanation take a look at the very similar case:
Why we deprecated Throwables.propagate
exception if it is an instance of clazz.Throwable.initCause(Throwable) instead.Throwable.addSuppressed(Throwable) instead.Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.