Using GError for document creation?



Hello.

So Adam Ples who has submitted a patch for XPath was working on it earlier this month and wondered why we don't even use GErrors for parsing files into Documents. 

GError handling was removed for DOMExceptions because GError's intended use is for unanticipated runtime situations (like issues loading a file you expect) which a user might be able to address, rather than programming problems (you wrote code to add a child twice to the same tree) which the user can't do much about.

Any thoughts on adding GError handling to the Document constructors, then, like GXml.Document.from_path (), etc?

Cheerio,
  Richard


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]