mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
catch only Exceptions here, leaving Errors to a more outer handler
This commit is contained in:
parent
c1f43de183
commit
9bed7c364b
@ -74,9 +74,9 @@ public class Main {
|
||||
if (!display.readAndDispatch())
|
||||
display.sleep();
|
||||
}
|
||||
catch (Throwable e) {
|
||||
if (e instanceof SWTException && e.getCause() != null)
|
||||
e = e.getCause();
|
||||
catch (Exception e) {
|
||||
if (e instanceof SWTException && e.getCause() instanceof Exception)
|
||||
e = (Exception) e.getCause();
|
||||
|
||||
// display a nice error message
|
||||
String localizedMessage = getLocalizedMessage(e);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user