Refactored Exception classes.