5 // Created by James McIlree on 4/7/13.
6 // Copyright (c) 2013 Apple. All rights reserved.
9 #ifndef CPPUtil_Exception_hpp
10 #define CPPUtil_Exception_hpp
12 class Exception : public std::exception {
17 Exception(std::string& what) : _what(what) {} ;
18 virtual ~Exception() throw () {};
20 virtual char const* what() const throw() { return _what.c_str(); }
25 std::ostringstream s; \
27 std::string str = s.str(); \
32 #define UNIMPLEMENTED() THROW("Unimplemented: " << Path((char*)__FILE__).basename() << ":" << __LINE__ )