Currently they have to be a WmfException which is part of wmf_common. We could represent this in config.
I feel like we would be hearing a lot more about this if still a problem