ustom message" )]
public void TestMethod()
{
...</pre>
</div>

<h4>Handling the Exception in Code</h4>

<p>If the processing required for an exception is too complex to express
in the attribute declaration, the normal practice is to process it in the
test code using a try/catch block. As an alternative, NUnit 2.4 allows
designating a method that will be called to process the exception. This
is particularly useful when multiple exceptions need to be processed
in the same way.</p>

<p>An common exception hand