move exception class out of namespace