move exceptions to single class