Closed GoogleCodeExporter closed 9 years ago
Work done on Unix as part of revision #2166.
Original comment by olivier.chafik@gmail.com
on 29 Jun 2011 at 3:49
Are you sure java.lang.Error is the appropriate superclass for LastError? "An
Error is a subclass of Throwable that indicates serious problems that a
reasonable application should not try to catch." (Javadoc) However,
applications can very easily want to catch LastError, extract the error code,
and handle at least some of them, like the "file not found" error of the "open"
function.
I would choose to LastError from RuntimeException instead.
Original comment by kazocs...@gmail.com
on 29 Jun 2011 at 4:31
[deleted comment]
Hi Csaba,
Thanks for your comment !
You're right, RuntimeException makes more sense (even though it feels odd that
LastError is not an Error ;-)).
Here's the doc (LastError is in the latest 0.6-SNAPSHOT) :
http://nativelibs4java.sourceforge.net/bridj/api/development/org/bridj/LastError
.html
Cheers
--
zOlive
Original comment by olivier.chafik@gmail.com
on 30 Jun 2011 at 12:18
Original issue reported on code.google.com by
olivier.chafik@gmail.com
on 29 Jun 2011 at 1:45