Incorrect class instantiation when throwing a dispatcher exception.