Groovy Exception handling

Exception handling

Groovy lets the programmer decide to catch the exception or not. In the following example, the developer tries to open and read the contents of a file. He does not need to surround the method with a try and catch block, when he knows that the file exists. Continue reading “Groovy Exception handling”