Commit a413ee68 authored by Justin Carpentier's avatar Justin Carpentier

core: remove exception.hpp file - not used

parent efa23735
......@@ -227,10 +227,7 @@ ELSE(LUA5_FOUND)
ENDIF(LUA5_FOUND)
LIST(APPEND HEADERS
exception.hpp
macros.hpp
)
LIST(APPEND HEADERS macros.hpp)
MAKE_DIRECTORY("${${PROJECT_NAME}_BINARY_DIR}/include/pinocchio")
MAKE_DIRECTORY("${${PROJECT_NAME}_BINARY_DIR}/include/pinocchio/core")
......
//
// Copyright (c) 2015 CNRS
//
#ifndef __pinocchio_exception_hpp__
#define __pinocchio_exception_hpp__
#include <exception>
#include <string>
namespace pinocchio
{
class Exception : public std::exception
{
public:
Exception() : message() {}
Exception(std::string msg) : message(msg) {}
const char *what() const throw()
{
return this->getMessage().c_str();
}
~Exception() throw() {}
virtual const std::string & getMessage() const { return message; }
std::string copyMessage() const { return getMessage(); }
protected:
std::string message;
};
} // namespace
#endif // ifndef __pinocchio_exception_hpp__
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment