Question Authors' Forum

Can I use a raised exception as an answer?

Re: Can I use a raised exception as an answer?

by Richard Lobb -
Number of replies: 0

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.