System Automation the Groovy Way • 333
perspective, this is perfectly reasonable. ese “checked” exceptions represent poten-
tially serious problems for which we should have plans in place. From another perspec-
tive, it is a waste of energy to force the programmer to check for an exception that,
through some means, can be assured never to happen. Taking this second view, Groovy
does not enforce these required exception handling rules. All exceptions are treated as
“unchecked,” meaning it is up to the developer to decide whether to write handling code
for them. is way, when exception handling is found in Groovy code, we can be sure
it is there by choice.
Multiline strings—Groovy allows a “triple-quote” string literal that makes creating
fo ...