cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] ErrorHandling TomEicher Mon Aug 25 19:00:03 2003
Date Mon, 25 Aug 2003 17:00:03 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=ErrorHandling , version: 8 on Mon Aug 25 16:14:01
2003 by 62.180.31.25

+ 
+ !How to get Exception Object
+ 
+ if you want to display the original error message in your own xsp ... 
+ 
+ {{{
+ <xsp:logic>
+ // dump error to stderr so we can fix it. /te
+ 
+ System.err.println("---UNCAUGHT EXCEPTION IN SITEMAP");
+ 
+ org.apache.cocoon.components.notification.Notifying  notification  =
+ (org.apache.cocoon.components.notification.Notifying)objectModel.get(org.apache.cocoon.Constants.NOTIFYING_OBJECT);
+ 
+ System.err.println(notification.getDescription());
+ java.util.Map m = notification.getExtraDescriptions();
+ if (m!=null) 
+ {
+ 	Object t = m.get("stacktrace");
+ 	if (t!=null)
+ 	  System.err.println(t);
+ }
+ System.err.println("---");
+ </xsp:logic>
+ }}}
+ 
+ (works for cocoon 2.1rc1)
+ 
+ -- [TomEicher] 25.08.03
+ 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=TomEicher , version: 1 on Mon Aug 25 16:15:41
2003 by 62.180.31.25

New page created:
+ \\
+ http://www.teicher.net\\
+ mailto:t om.ei cher@bigf oot.com (remove 3 blanks for this to work ;-)\\
+ 



Mime
View raw message