M
mickedplay
Gast
Hi, kann ich irgendwie abfragen welche Exception gerade auftritt?
Hoffe, ihr versteht, was ich mein!
Danke!
Java:
public static void log(Exception ex)
{
if(ex instanceof NumberFormatException)
{
System.out.println("numberformatexception");
}
if(ex instanceof IllegalArgumentException)
{
System.out.println("illegalargumentexception");
}
}
Hoffe, ihr versteht, was ich mein!
Danke!