throw new RuntimeException(msg);
You need the new in there. It’s creating an instance and throwing it, not calling a method.
throw new RuntimeException(msg);
You need the new in there. It’s creating an instance and throwing it, not calling a method.