public Integer mapThrowable(final Throwable throwable) {
        Throwable throwableToCheck = throwable;
        int depthToGo = 20;

        while (true) {
            Integer resId = mapThrowableFlat(throwableToCheck);
            if (resId != null) {
                return resId;
            } else {
                throwableToCheck = throwableToCheck.getCause();
                depthToGo--;
                if (depthToGo <= 0 || throwableToCheck == throwable || throwableToCheck == null) {
                    Log.d("EventBus", "No specific message resource ID found for " + throwable);
                    // return config.defaultErrorMsgId;
                    return null;
                }
            }
        }

    }
public Integer mapThrowable(final Throwable throwable) {
        Throwable throwableToCheck = throwable;
        int depthToGo = 20;

        while (true) {
            Integer resId = mapThrowableFlat(throwableToCheck);
            if (resId != null) {
                return resId;
            } else {
                throwableToCheck = throwableToCheck.getCause();
                depthToGo--;
                if (depthToGo <= 0 || throwableToCheck == throwable || throwableToCheck == null) {
                    Log.d("EventBus", "No specific message resource ID found for " + throwable);
                    
                    return null;
                }
            }
        }

    }
public Integer mapThrowable ( final Throwable throwable ) { Throwable throwableToCheck = throwable ; int depthToGo = 20 ; while ( true ) { Integer resId = mapThrowableFlat ( throwableToCheck ) ; if ( resId != null ) { return resId ; } else { throwableToCheck = throwableToCheck . getCause ( ) ; depthToGo -- ; if ( depthToGo <= 0 || throwableToCheck == throwable || throwableToCheck == null ) { Log . d ( "EventBus" , "No specific message resource ID found for " + throwable ) ; // return config.defaultErrorMsgId; return null ; } } } }
Looks at the exception and its causes trying to find an ID.
Looks at the exception and its causes trying to find an ID .