00001 00008 #include "utilities/exception.h" 00009 #include <ros/common.h> 00010 00011 namespace utilities 00012 { 00017 Exception::Exception(std::string message) : message_(message.c_str()) 00018 { 00019 ROS_FATAL("%s", message.c_str()); 00020 } 00021 00026 Exception::Exception(const char* message) : message_(message) 00027 { 00028 ROS_FATAL("%s", message); 00029 } 00030 00035 const char* Exception::what() const throw() { return message_; } 00036 }