From: Stefan B. <bo...@ap...> - 2009-05-14 10:23:04
|
On 2009-05-13, Филимонов Максим Сергеевич <tpa...@gm...> wrote: > I think maybe there is some additional value in wrapping > SystemExceptions into XmlUnit exceptions: > 1) We would be more decoupled from .net if we will wrap our exceptions > with XmlUnit exception and can share code between java/.net in high > level easily. True. > 3) Will be much easier to share tests , remember your idea , huh ? :) tests, what tests? ;-) > Also i want to suggest use another class not XMLUnit Exception maybe > something like XMLUnitPersistanceException or something like that. Right now the Java trunk has XMLUnitRuntimeException (happy to use a different name) as the more general case and ConfigurationException that is used to wrap the various JAXP ConfigurationException classes: <http://xmlunit.svn.sourceforge.net/viewvc/xmlunit/trunk/xmlunit/src/main/java-core/net/sf/xmlunit/exceptions/> Java 1.2 also has a specific XPathException. We can invent new XMLUnitRuntimeException subclasses as we go IMHO. Stefan |