cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <robby.pelss...@ciber.com>
Subject exception handling sitemap
Date Thu, 15 Apr 2010 08:32:11 GMT
Hi all,

I was wondering if I can access the exception thrown in the exception handler... What I would
like to do is generate a generic xml document containing info about the exception... 

If it is possible, how can I accomplish this?


<map:handle-errors>
  <map:select type="exception">
    <map:when test="sax">
      <!-- forward to generic xml exception page -->
    </map:when>
    <map:when test="fileNotFound">
      <!-- forward to generic xml exception page -->      
    </map:when>	      	      
  </map:select>
</map:handle-errors>


<!-- jx template -->
<Exception>
  <Class>${exception.class.name}</Class>
  <Message>${exception.message}</Message/>
  <Cause>${exception.cause}</Cause>
</Exception>


Kind regards,
Robby
Mime
View raw message