On 11 July 2013 14:06, Vincent Blondeau <vincent.blondeau@polytech-lille.net> wrote:
Hi,
For Moose on web, I have to implement the loading of a Moose Model by a HTML post request. This request send a file which have to been parsed to create a model.
The parsing launch a Job (by an UIManager) and the Job throws a JobStartNotification at his beginning. JobStartNotification is a subclass of Exception. I use a Zinc Server. So when I do the request, Zinc catch the Exception and send an error as response.
Has a Notification to be considered like an Exception and not like a catchable object, because it's just some information... ?
Exceptions are exactly the catchable objects. A Notification is typically used to signal some event to a piece of code lower down the call stack. Subclasses of Error represent what other languages call exceptions. frank
Cheers, Vincent