private boolean isTransientException ( Throwable throwableException ) { if ( throwableException != null ) { return ! ( ( throwableException instanceof UnsupportedOperationException ) || ( throwableException instanceof ApplicationException && ( ( ApplicationException ) throwableException ) . getCode ( ) != ApplicationException . Code . BACKEND_ERROR ) ) ; } return true ; }
Used to determine if the exception is thrown due to a transient failure and the operation is expected to succeed upon retrying .