public class TransientException extends RuntimeException
These exceptions deal with situations that are not program errors but relate to the programs interaction.
Ideally they would be checked however if you follow Clean Code pg 107 checked exceptions violate the Open/Closed Principle in that any time you add a checked exception the ripple of code changes totally breaks encapsulation.
Best to just write good tests and document transient exceptions.
| Constructor and Description |
|---|
TransientException(String message,
Object... arguments) |
TransientException(Throwable t,
String message,
Object... arguments) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRetryable() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2009–2016 RedEngine Ltd. All rights reserved.