Catching OutOfMemory won't do you much good. You're already in an
inconsistent state and at that point your app should be restarted. Yes
LiftRules.exceptionHandler won't get you back in your upload work
flow. It is a mean for graceful degradation when unrecoverable errors
occur. Thus you can redirect to error pages, returning Ajax responses
in case the exception was thrown from an Ajax function etc.

Br's,
Marius

On Dec 22, 10:28 am, tiro <[email protected]> wrote:
> Well LiftRules.exceptionHandler was new to me so thanks. Great way to
> deal with the really unexpected (like OutOfMemory). Would do in the
> short run.
> However, the other Tim is correct in that I (and probably other
> people) really want to handle this like similarly to a validation
> error on any other field. LiftRules.exceptionHandler catches so far
> outside, as far as I understand, that the only way to get back into
> the workflow would be to kindly ask the user to press the Back button.

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to