GrailsWrappedRuntimeException (Grails 5.2.5)

Package: org.grails.web.errors

## [Java] Class GrailsWrappedRuntimeException

- org.grails.web.errors.GrailsWrappedRuntimeException

-     public class GrailsWrappedRuntimeException
      extends GrailsException

  Wraps a Grails RuntimeException and attempts to extract more relevent diagnostic messages from the stack trace.

  Authors:
    Graeme Rocher
  Since:
    0.1

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static java.lang.String` | `URL_PREFIX` |

  - ### Constructor Summary

    Constructors
    Constructor and description
    `GrailsWrappedRuntimeException (javax.servlet.ServletContext servletContext, java.lang.Throwable t)` Parameters: `servletContext` - The ServletContext instance

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public java.lang.String` | `getClassName()` Returns: Returns the className.
    `` | `public java.lang.String[]` | `getCodeSnippet()` Returns: Returns the line.
    `` | `public int` | `getLineNumber()` Returns: Returns the lineNumber.
    `` | `public java.lang.String` | `getMessage()`
    `` | `public java.lang.String[]` | `getStackTraceLines()` Returns: Returns the stackTrace lines
    `` | `public java.lang.String` | `getStackTraceText()` Returns: Returns the stackTrace.

- - ### Field Detail

    - #### public static final java.lang.String URL_PREFIX

  - ### Constructor Detail

    - #### public GrailsWrappedRuntimeException(javax.servlet.ServletContext servletContext, java.lang.Throwable t)

      Parameters:
        `servletContext` - The ServletContext instance
        `t` - The exception that was thrown

  - ### Method Detail

    - #### public java.lang.String getClassName()

      Returns:
        Returns the className.

    - #### public java.lang.String[] getCodeSnippet()

      Returns:
        Returns the line.

    - #### public int getLineNumber()

      Returns:
        Returns the lineNumber.

    - #### @java.lang.Override public java.lang.String getMessage()

    - #### public java.lang.String[] getStackTraceLines()

      Returns:
        Returns the stackTrace lines

    - #### public java.lang.String getStackTraceText()

      Returns:
        Returns the stackTrace.