Add Util methods to test exception handling infrastructure.