Google-Apps
Hauptmenü

Post a Comment On: Kaffee und: [Kuchen]

"Seaside 2.9: Exception Handling"

2 Comments -

1 – 2 of 2
Blogger Unknown said...

i've just tried to set a different error handler in an application. In the configuration dialog i could find a way to do so but your example to do:

app preferencesAt: #exceptionHandler put: WADebugErrorHandler

doesn't work in Seaside 2.9a4. it seems only possible on the application's exception-filter (via "configuration at:..").
Splitting the configuration into cache, filter, application is a bit confusing. Do you plan to revert the behavior to what you explained in this post? Would be great if the application's configuration could be done with #preferenceAt:put: instead of querying for the filters/caches etc.

Karsten

August 03, 2009 4:11 pm

Blogger Julian Fitzell said...

We don't plan to revert the refactoring, no. Splitting exception handling into a filter rather than duplicating it in every request handler is sound. Clearly work still needs to be done in configuration area, though, and we know this.

The UI has only been modified the minimum necessary to make things work but is certainly no longer intuitive and needs work. The admin tools need to be improved so that common operations (like switching between deployment and development settings) are made easier.

We could probably add #exceptionHandler: to WAEntryPoint or something to make this particular change easier from a Workspace.

Finally, I have occasionally thought about keeping the configurations centralized in WAEntryPoint and having other things pull their values from there, but this is problematic in the case of, for example, WACache, which is used by both WAApplication and WASession. Both instances need the same configuration. How do you distinguish between them if they are stored in the Application?

Anyway, we know this is a pain point. Partly we're waiting to see how much of that is just that it's new and different, partly we're waiting for tools to catch up, and partly we're using it and getting feedback to see what else can be done.

August 03, 2009 5:20 pm

You can use some HTML tags, such as <b>, <i>, <a>

You will be asked to sign in after submitting your comment.
Please prove you're not a robot