java - How to make runnable Jar programs that do not fail silently? -
To create, I can read the unmatched exception if I run it from the command prompt ( Example code: Command line output: unread exceptions The advantage of handling this method is that the user address something went wrong (and maybe report it, hopefully). How do I uncheck the unused exceptions of my program in this way Can I be handled? Why not add a line like this in your catch block, which will show you how you run your app, even though error message. java -jar Myprogram.jar ).
Public static zero main (string rule []) {try {EntireProgram ()}} Catch (throttle T) {new error ("somehow There are errors in our error handling code "); }} Public static zero EntireProgram () {System.out.println (1/0); }
javax.swing.JOptionPane.showMessageDialog (empty, "some In fact, it is wrong .. you should inform. ");
Comments
Post a Comment