Add an opportunity to set custom raise_exception