Use a DummyException for testing instead of a regular Exception