Better yet, can we simply short-circuit return if the code matches, otherwise mayRaise()?  That would probably be clearest, I think.