[redland-dev] [patch] C# error handling

Edd Dumbill edd at usefulinc.com
Fri Jul 9 14:14:58 BST 2004


This patch reworks yesterday's attempts at C# error handling to use the
new librdf error processing API.  So far, I've amended the Parser class
to throw exceptions when errors occur.  The other classes which can
generate errors also need similar amendment, yet to do :)

Diff and new changelog for the csharp/ dir attached.

-- Edd

-------------- next part --------------
A non-text attachment was scrubbed...
Name: csharp.diff
Type: text/x-patch
Size: 5091 bytes
Desc: not available
Url : http://lists.usefulinc.com/pipermail/redland-dev/attachments/20040709/75e14bdc/csharp.bin
-------------- next part --------------
2004-07-09  Edd Dumbill <edd at usefulinc.com>

	* Errors.cs: new enums LogLevel and Facility.  New class Locator to
	encapsulate locator part of a log message.  New LogMessage class to
	encapsulate a returned log message from librdf.  Amend RedlandFault
	and RedlandError to store an array of LogMessages instead of strings.

	* World.cs: move logging to use the new librdf logging API. Add
	setting of a logging level.  Now exposes the Messages property,
	which is an array of LogMessages accumulated since the last
	ClearLog call.

	* Parser.cs: use World.Messages as the basis of exceptions.


More information about the redland-dev mailing list