I'm going to develop java SIM toolkit applets. One of my difficulties is when I have an exception in my code I don't know how to understand what is the exception?
try {
reg.initMenuEntry(MenuItem1, (short) 0, (short) MenuItem1.length, PRO_CMD_DISPLAY_TEXT, false, (byte) 0, (short) 0);
} catch (Throwable t) {
}
E.g. in above statement if an exception happens, I don't know how to handle the exception and understand what is the cause of exception?
P.s. Is catching Throwable a good idea (instead of exception)? I tried to catch Throwable since it is parent of Exception itself.