I\'m trying to throw an exception in my code like this:
throw RuntimeException(msg);
But when I build in NetBeans I get this error:
<
you will have to instantiate it before you throw it
throw new RuntimeException(arg0)
PS: Intrestingly enough the Netbeans IDE should have already pointed out that compile time error