Re: Handling failures in post-functions
"Pat Lightbody" <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.devel |
|---|---|
| Message-ID | <023b01c30f35$15d575a0$6401a8c0@moose> |
Just rollback the TX -- in general you should not get errors in post-functions (ie: you should have validated your input before the transition took place). -Pat ----- Original Message ----- From: "Hubert Felber" <[email protected]> To: <[email protected]> Sent: Monday, April 28, 2003 10:19 PM Subject: [Opensymphony-developers] Handling failures in post-functions > Hi, > > I have a general question about post functions. According to the description, post functions are for 'the "meat" goes' and are executed executed after the transition has been made. How do you handle errors happening in post functions? As I see it, the transition is already done and you don't have a chance to go back. Is there a concept how to handle post-function errors? > > Hubert > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensymphony-developers ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf