diff --git a/src/Mod/Assembly/App/opendcm/core/defines.hpp b/src/Mod/Assembly/App/opendcm/core/defines.hpp new file mode 100644 index 000000000..b6547533b --- /dev/null +++ b/src/Mod/Assembly/App/opendcm/core/defines.hpp @@ -0,0 +1,41 @@ +/* + openDCM, dimensional constraint manager + Copyright (C) 2013 Stefan Troeger + + This library is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License along + with this library; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ + +#ifndef GCM_DEFINES_CORE_H +#define GCM_DEFINES_CORE_H + + +#include +#include + +namespace dcm { + +//all solving related errors +typedef boost::error_info error_message; +typedef boost::error_info error_type_first_geometry; +typedef boost::error_info error_type_second_geometry; + +//exception codes are needed by the user +struct creation_error : virtual boost::exception {}; +struct solving_error : virtual boost::exception {}; +struct constraint_error : virtual boost::exception {}; + +} //dcm + +#endif //GCM_DEFINES_CORE_H \ No newline at end of file