public static void handleException(final Exception cause) {
        if (null == cause) {
            return;
        }
        if (isIgnoredException(cause) || null != cause.getCause() && isIgnoredException(cause.getCause())) {
            log.debug("Ignored exception for: {}", cause.getMessage());
        } else if (cause instanceof InterruptedException) {
            Thread.currentThread().interrupt();
        } else {
            throw new RegistryCenterException(cause);
        }
    }
public static void handleException ( final Exception cause ) { if ( null == cause ) { return ; } if ( isIgnoredException ( cause ) || null != cause . getCause ( ) && isIgnoredException ( cause . getCause ( ) ) ) { log . debug ( "Ignored exception for: {}" , cause . getMessage ( ) ) ; } else if ( cause instanceof InterruptedException ) { Thread . currentThread ( ) . interrupt ( ) ; } else { throw new RegistryCenterException ( cause ) ; } }
Handle exception.

<p>Ignore interrupt and connection invalid exception.</p>

@param cause to be handled exception