[Rock-dev] API change in iodrivers_base CORRECTION

Sylvain Joyeux sylvain.joyeux at dfki.de
Tue Sep 6 18:01:58 CEST 2011


On 09/06/2011 05:47 PM, Sylvain Joyeux wrote:
> 1. iodrivers_base changed quite a bit lately. Until now, I tried to
>      keep these changes backward compatible (you just get a lot of
>      warnings). I just pushed backward-incompatible changes:
>
>         the open* methods now return void and throw on error
>
>      The reason for that is that most people that started to write
>      drivers did not actually *check* for the return value. Since
>      throwing is anyway the general guideline, I changed it to throw.

This one was really stupid from my side

Error handling *is* now done through exceptions, but the boolean return 
value is kept so that code still compiles

Realize, however, that if you expect your own API to return false (i.e. 
don't want to use exceptions), this *does* change the behaviour.
-- 
Sylvain Joyeux (Dr.Ing.)
Space & Security Robotics

!!! Achtung, neue Telefonnummer!!!

Standort Bremen:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-454136
Fax:   +49 (0)421 218-454150
E-Mail: robotik at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3
-----------------------------------------------------------------------


More information about the Rock-dev mailing list