When would be the best use of this type of exception and is it handeled properly if caught in a catch like so?
catch(Exception e)
Or does it ne
You should not handle an IllegalArgumentException. It's porpose is to inform the developer, that he have called a method with wrong arguments. Solution is, to call the method with other arguments.
If you must catch it you should use
catch(IllegalArgumentException e)