Moved exceptions to their own module