Make exceptions configurable