Re: Can I use a raised exception as an answer?
by Richard Lobb - Good answer :)
However, one thing to be aware of is that some students will simply print the expected output rather than throwing an exception. The easiest fix is to have a second similar test in which the exception handler prints something different.