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:
<
Just for others: be sure it is new RuntimeException, not new RuntimeErrorException which needs error as an argument.