Project

General

Profile

« Previous | Next » 

Revision 9d423016

Added by Andreas Kohlbecker almost 5 years ago

improving DelegatingErrorHandler

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/event/error/DelegatingErrorHandler.java
68 68
            ){
69 69
            // we are only interested into the cause in these cases
70 70
            throwable = throwable.getCause().getCause();
71
            event.setThrowable(throwable);
71
        }
72
        if(throwable == null){
73
            // nothing more specific found, use the original exception
74
            throwable = event.getThrowable();
72 75
        }
73 76
        while(throwable != null){
77
            event.setThrowable(throwable);
74 78
            if(delegate(event, throwable)){
75 79
                break;
76 80
            }

Also available in: Unified diff