org.codehaus.groovy.grails.web.errors
Class GrailsWrappedRuntimeException
java.lang.Object
  
java.lang.Throwable
      
java.lang.Exception
          
java.lang.RuntimeException
              
org.codehaus.groovy.grails.exceptions.GrailsException
                  
org.codehaus.groovy.grails.web.errors.GrailsWrappedRuntimeException
- All Implemented Interfaces: 
 - Serializable
 
public class GrailsWrappedRuntimeException
- extends GrailsException
 
An exception that wraps a Grails RuntimeException and attempts to extract more relevent diagnostic messages from the stack trace
- Since:
 
  - 0.1
 Created: 22 Dec, 2005
 
- Author:
 
  - Graeme Rocher
 
- See Also:
 - Serialized Form
 
 
 
 
 
 
URL_PREFIX
public static final String URL_PREFIX
- See Also:
 - Constant Field Values
 
GrailsWrappedRuntimeException
public GrailsWrappedRuntimeException(ServletContext servletContext,
                                     Throwable t)
- Parameters:
 servletContext - The ServletContext instancet - The exception that was thrown
getCodeSnippet
public String[] getCodeSnippet()
- Returns:
 - Returns the line.
 
 
getClassName
public String getClassName()
- Returns:
 - Returns the className.
 
 
getLineNumber
public int getLineNumber()
- Returns:
 - Returns the lineNumber.
 
 
getStackTraceText
public String getStackTraceText()
- Returns:
 - Returns the stackTrace.
 
 
getStackTraceLines
public String[] getStackTraceLines()
- Returns:
 - Returns the stackTrace lines
 
 
getMessage
public String getMessage()
- Overrides:
 getMessage in class Throwable
 
 
Copyright (c) 2005-2006 The Grails project