title: Groovy how to multi line GStrings for exception messages
body: <p>What is the standard (or best practice) for Groovy error messages that that shouldn't span over a certain number of characters/line, e.g., 80 characters?</p>
  
  <p>Consider the following (which is working fine)</p>
  
  <pre><code>throw new IOException("""\
          A Jenkins configuration for the given version control
          system (${vcs.name}) does not exist."""
          .stripIndent()
          .replaceAll('\n', ' '))
  </code></pre>
  
  <p>This will result in a one-line error message with no indention characters (what I want). But is there some other way ("the Groovy way of doing it") how to achieve this? If not, how could you add such a method to the GString class in a standalone Groovy application (if found hints regarding a Bootstrap.groovy file but it seems to be related to Grails)?</p>
  
  <p>Example: <code>"""Consider a multi line string as shown above""".toSingleLine()</code></p>