00001 // 00002 // 00003 // Generated by StarUML(tm) C++ Add-In 00004 // 00005 // @ Project : 3D printer driver 00006 // @ File Name : Error.h 00007 // @ Date : 6.10.2009 00008 // @ Author : Darius Kocar xkocar00@stud.fit.vutbr.cz 00009 // 00010 // 00011 00012 00013 #if !defined(_ERROR_H) 00014 #define _ERROR_H 00015 00016 #include <boost/exception.hpp> 00017 00018 00019 00020 00021 struct exception_base: virtual std::exception, virtual boost::exception {}; 00022 struct general_error: virtual exception_base { }; 00023 struct motor_error: virtual general_error { }; 00024 struct serial_port_error: virtual general_error { }; 00025 00026 typedef boost::error_info<struct tag_description, std::string> what; 00027 00028 00029 #endif //_ERROR_H
1.6.1