Moved exceptions to own file