Description
ToString method is implemented instead of getMessage in org.codehaus.groovy.control.MultipleCompilationErrorsException class. This breaks the contract of Throwable super class causing silly messages to be printed, when the exception is thrown.
I get this message in my progam:
...
Caused by: java.lang.RuntimeException: startup failed
...
I changed the implementation which improves the message:
...
Caused by: java.lang.RuntimeException: startup failed, groovy.script: 1: unexpected token: > @ line 1, column 24.
1 Error
...