GNOME Bugzilla – Bug 655211
Fix some error domains in GFile bindings
Last modified: 2011-07-25 19:22:33 UTC
Patch coming up to fix some error domains for the GFile bindings. I hope I've done this the correct way.
Created attachment 192561 [details] [review] Fix some error domains in the GFile bindings
The problem is that the API is not guaranteed to only use GIOError. I spoke with Ryan Lortie in August of 2010 about this issue (error domains in GIO, not specifically GFiile), and he isn't making any promises about which error domains will be used. According to him, "many things there (and increasingly so) will be throwing errors related to DBus, for example". It seems the only thing to do is keep the errors as GError. You can still catch the error in your code and test if it is a GLib.IOError.
Ah, right. That makes sense.