public boolean isTransient ( ) { Throwable cause = getCause ( ) ; if ( cause == null ) { return isServerError ( statusCode ) ; } else if ( cause instanceof AlgoliaException ) { return ( ( AlgoliaException ) cause ) . isTransient ( ) ; } else if ( cause instanceof IOException ) { return true ; } else { return false ; } }
Test whether this error is transient .