SRL Archive - Development

[Developer only ;) ] Error throwing


Wizzup?

2010-02-23 12:50:50

Raymond, I commited X11 Error Handling.
http://vila.villavu.com/cgi-bin/gitweb/gitweb.cgi?p=mufasa.git/.git;a=commitdiff;h=5bba118c098d38618c744973378004c988132141

Now we can simply check for errors with ReceivedError, GetError and ResetError.
This raises a new question. How will we report the errors?

We can:

  • Throw exception IN the function that causes the error. (GetMousePosition, SetMousePosition, ReturnData, etc) We will need try… except if we want to catch exceptions, always.
  • Check for exception after the function call. If it is appropriate to throw exception, throw it.

I prefer the latter. This means we'd have to add the ReceivedError in every PS function that uses the Manager, though.

mastaraymond

2010-02-23 13:30:35

Do last then :-)