[vwnc] Handling SystemNotification

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Handling SystemNotification

Facundo Ciccioli
Hello. I'm having a problem trying to handle SystemNotifications. They
aren't subclasses of Exception, but of GenericException. The #on:do:
message seems to only take as its on parameter subclasses of Exception
(at least it's not working if I do on: SystemNotification do:
[something]). The reason I need to do this is beacuse BOSS throws one
of these when it finds something that can't be bossed out (like a
SocketAccessor in this case). I would like to disregard that and make
it just go on without user intervention. How can I do this?

Greetings,
FaQ
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Handling SystemNotification

kobetic
Try this:

[ SystemNotification raiseSignal ] on: SystemNotification do: [ :ex | Transcript show: 'Gotcha!' ]

The problem is more likely that BOSS isn't doing what you think. If you're getting an exception, it's probably different kind of exception you need to trap.

HTH,

Martin

"Facundo Ciccioli"<[hidden email]> wrote:

> Hello. I'm having a problem trying to handle SystemNotifications. They
> aren't subclasses of Exception, but of GenericException. The #on:do:
> message seems to only take as its on parameter subclasses of Exception
> (at least it's not working if I do on: SystemNotification do:
> [something]). The reason I need to do this is beacuse BOSS throws one
> of these when it finds something that can't be bossed out (like a
> SocketAccessor in this case). I would like to disregard that and make
> it just go on without user intervention. How can I do this?
>
> Greetings,
> FaQ
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc