1 #ifndef MBF_UTILITY__RECOVERY_EXCEPTION_H_
2 #define MBF_UTILITY__RECOVERY_EXCEPTION_H_
5 #include <mbf_msgs/RecoveryResult.h>
14 const char *
what ()
const throw () {
17 case mbf_msgs::RecoveryResult::FAILURE:
return "Failure";
18 case mbf_msgs::RecoveryResult::CANCELED:
return "Canceled";
19 case mbf_msgs::RecoveryResult::PAT_EXCEEDED:
return "Patience exceeded";
20 case mbf_msgs::RecoveryResult::TF_ERROR:
return "TF Error";
21 case mbf_msgs::RecoveryResult::NOT_INITIALIZED:
return "Not initialized";
22 case mbf_msgs::RecoveryResult::INVALID_PLUGIN:
return "Invalid Plugin";
23 case mbf_msgs::RecoveryResult::INTERNAL_ERROR:
return "Internal Error";
24 case mbf_msgs::RecoveryResult::STOPPED:
return "Stopped";
25 default:
return "unknown error code: " +
outcome;
33 #endif // MBF_UTILITY__RECOVERY_EXCEPTION_H_