wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Renz <s.r...@efonds.com>
Subject Error handling in IResource implementations?
Date Wed, 02 Apr 2014 13:25:36 GMT

I'm currently at loss: what would be the correct way signalling that a
IResource implementation encountered an error?

Here's the case:

I have a custom AbstractResource implementation that grabs an object
from a WebService. Getting information about the object (metadata and
ID) is one call, actually getting the content stream by ID is another.

I get the metadata, and set the response properties accordingly (time of
last modification, content type, etc.).

Then, in the anonymous
I make the call to retrieve the content. And here's the problem:

What can I do at this stage to inform the user a problem occured, i.e.
by forwarding to an error page (using IExceptionMapper)? Here, the
metadata is still present (database), whereas the file content
(filesystem) is gone for whatever reason.

Thanks for your help,

To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

View raw message