I use the following line of code in all my catch operations to print errors to the console:
System.out.println("ERROR MESSAGE " + e.getMessage() );
Sometimes in the console I get the following:
ERROR MESSAGE null
How can it be null? If it reaches catch, it means an exception is thrown, but why is null?
Paulg source
share