From: <bo...@us...> - 2009-05-18 16:00:53
|
Revision: 325 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=325&view=rev Author: bodewig Date: 2009-05-18 16:00:49 +0000 (Mon, 18 May 2009) Log Message: ----------- wrap exception into our own type Modified Paths: -------------- trunk/xmlunit/src/main/net-core/builder/Input.cs Modified: trunk/xmlunit/src/main/net-core/builder/Input.cs =================================================================== --- trunk/xmlunit/src/main/net-core/builder/Input.cs 2009-05-18 15:59:09 UTC (rev 324) +++ trunk/xmlunit/src/main/net-core/builder/Input.cs 2009-05-18 16:00:49 UTC (rev 325) @@ -115,6 +115,7 @@ } public ISource Build() { + try { XslCompiledTransform t = new XslCompiledTransform(); if (styleSheet != null) { t.Load(styleSheet.Reader); @@ -126,6 +127,9 @@ ms); } return FromMemory(ms.ToArray()).Build(); + } catch (Exception ex) { + throw new XMLUnitException(ex); + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |