<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 8/29/2012 10:02 AM, Alexander
O'Donovan-Jones wrote:<br>
</div>
<blockquote
cite="mid:98D0F3AAB54DF646B187C3D80D0CCFE406ED50B0@RKV-IT-EXCH103.ccp.ad.local"
type="cite">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Segoe
UI","sans-serif";color:#1F497D">Creating a mock
object that raises the exceptions required is exactly the
route I’m taking now.
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Segoe
UI","sans-serif";color:#1F497D"><o:p></o:p></span></p>
</blockquote>
Yes, I can see that, but it's causing you trouble, and you can
instead simply use two arguments to the function that will raise the
exception, no? I'm not sure why mocking is the better approach
here.<br>
<br>
--Ned.<br>
</body>
</html>