问题
I'm working with GWT and sometimes I'm getting exception called UmbrellaException I was always wondering why is it called like that? It is because there is a lot of error (rain) that you have to protect the application (use umbrella not to get wet).
回答1:
According to the first link when i googled the term "gwt umbrellaexception":
A
RuntimeExceptionthat collects aSetof childThrowabletogether. Typically thrown after loop, with all of the exceptions thrown during that loop, but delayed so that the loop finishes executing.
It's just a Collection of Exception (Throwable actually). Read the API Doc for more information.
回答2:
A RuntimeException that collects a Set of child Throwables together. Typically thrown after loop, with all of the exceptions thrown during that loop, but delayed so that the loop finishes executing.
com.google.gwt.event.shared.UmbrellaException
It's a Set of all the exceptions thrown during a loop which is thrown after the loop is done. Looks like it's used to let the loop to finish even if some exceptions occur during it's execution.
来源:https://stackoverflow.com/questions/8362613/why-does-umbrellaexception-have-that-name