Refactored all exceptions to its own package.