* @param t The exception that was thrown
*/
public GrailsWrappedRuntimeException(ServletContext servletContext, Throwable t) {
super(t.getMessage(), t);
cause = t;
FastStringPrintWriter pw = FastStringPrintWriter.newInstance();
cause.printStackTrace(pw);
stackTrace = pw.toString();
while (cause.getCause() != cause) {
if (cause.getCause() == null) {
break;
}