Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Webflow - access exception using transition.on-exception attribute

I wondering how can I access exception object using on-exception attribute? My current configuration looks like this:

<transition on-exception="{business_exception}" to="errorView" >
</transition>

I have to access some exception attribute in errorView. Does anybody know how can I do it?

like image 734
pzieba Avatar asked Jun 29 '11 10:06

pzieba


1 Answers

This is a rather undocumented part of Spring Web Flow, but according to this thread on SpringSource forum, you can access the exception directly on your view as attributes stateException and rootCauseException.

like image 60
abalogh Avatar answered Sep 22 '22 13:09

abalogh