Class GrailsWrappedRuntimeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class GrailsWrappedRuntimeException
    extends org.grails.core.exceptions.GrailsException
    Wraps a Grails RuntimeException and attempts to extract more relevent diagnostic messages from the stack trace.
    Since:
    0.1
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String URL_PREFIX  
    • Constructor Summary

      Constructors 
      Constructor Description
      GrailsWrappedRuntimeException​(javax.servlet.ServletContext servletContext, java.lang.Throwable t)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClassName()  
      java.lang.String[] getCodeSnippet()  
      int getLineNumber()  
      java.lang.String getMessage()  
      java.lang.String[] getStackTraceLines()  
      java.lang.String getStackTraceText()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GrailsWrappedRuntimeException

        public GrailsWrappedRuntimeException​(javax.servlet.ServletContext servletContext,
                                             java.lang.Throwable t)
        Parameters:
        servletContext - The ServletContext instance
        t - The exception that was thrown
    • Method Detail

      • getCodeSnippet

        public java.lang.String[] getCodeSnippet()
        Returns:
        Returns the line.
      • getClassName

        public java.lang.String getClassName()
        Returns:
        Returns the className.
      • getLineNumber

        public int getLineNumber()
        Returns:
        Returns the lineNumber.
      • getStackTraceText

        public java.lang.String getStackTraceText()
        Returns:
        Returns the stackTrace.
      • getStackTraceLines

        public java.lang.String[] getStackTraceLines()
        Returns:
        Returns the stackTrace lines
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable