Moved exception.hpp to misc/exception.hpp