CodeSnippetPrinter (Grails 3.1.10)
Date: 2016-07-28

Package: org.grails.exceptions.reporting

## [Groovy] Interface CodeSnippetPrinter

- Interfaces for classes to implement that print code snippets

  Authors:
    Graeme Rocher
  Since:
    2.2

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `java.lang.String` | `prettyPrintCodeSnippet(java.lang.Throwable exception)` Attempts to present a preview code snippet of the code that went wrong

- - ### Method Detail

    - #### java.lang.String prettyPrintCodeSnippet(java.lang.Throwable exception)

      Attempts to present a preview code snippet of the code that went wrong

      Parameters:
        `exception` - The exception
      Returns:
        The code snippet or nothing if it can't be previewed