Why does UmbrellaException have that name?

时光怂恿深爱的人放手 提交于 2019-12-22 01:15:30

问题


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 RuntimeException that collects a Set of child Throwable together. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!