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();
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??