Provide an exception class and message as arguments to `fail`.