javauis/tsrc/fute/lcdui/Midp_Alert_01/src/AlertTests.java
changeset 47 f40128debb5d
parent 26 dc7c549001d5
child 83 26b2b12093af
--- a/javauis/tsrc/fute/lcdui/Midp_Alert_01/src/AlertTests.java	Fri Jun 11 13:33:44 2010 +0300
+++ b/javauis/tsrc/fute/lcdui/Midp_Alert_01/src/AlertTests.java	Wed Jun 23 18:07:10 2010 +0300
@@ -156,6 +156,14 @@
                 errorAlert.setTimeout(Alert.FOREVER);
                 Display.getDisplay(parent).setCurrent(errorAlert);
             }
+            catch (IllegalArgumentException e)
+            {
+                System.out.println("Exception: " + e.toString());
+                Alert errorAlert = new Alert("Exception", e.toString(), null,
+                                             AlertType.ERROR);
+                errorAlert.setTimeout(Alert.FOREVER);
+                Display.getDisplay(parent).setCurrent(errorAlert);
+            }
         }
         else if (c == cmdExit)
         {