Thread: exception
View Single Post
  #1 (permalink)  
Old 03-22-2008, 10:45 PM
Oktam Oktam is offline
Member
 
Join Date: Mar 2008
Posts: 3
Oktam is on a distinguished road
exception
I'm new to java and got an exception problem...if an exception occurs in my programme i must print the output "can't execute", but with using a new exception: throw new IllegalArgumentException();
Code:
try{ ... .. } catch(NumberFormatException e) { throw new IllegalArgumentException(); }
Where and how do i have to define this IllegalArgumentException so that it can print a certain message??
Reply With Quote
Sponsored Links