22 explicit YamsException(
const std::string& message) : std::runtime_error(message) {}
38 const std::string& fix)
40 "[Arm Configuration Error]\n"
42 issue +
"\nResult: " + result +
"\nFix: " + fix) {}
56 :
YamsException(
"[SwerveDrive Configuration Error]\n" + message) {}
72 const std::string& fix)
74 "[SmartMotorController Configuration Error]\n"
76 issue +
"\nResult: " + result +
"\nFix: " + fix) {}
92 const std::string& fix)
94 "[Pivot Configuration Error]\n"
96 issue +
"\nResult: " + result +
"\nFix: " + fix) {}
106 :
YamsException(
"No reduction stages were given to the GearBox/Sprocket!") {}
121 "\". Stage must be in the format of \"IN:OUT\"") {}
137 const std::string& fix)
139 "[Elevator Configuration Error]\n"
141 issue +
"\nResult: " + result +
"\nFix: " + fix) {}
Definition exceptions.hpp:28
ArmConfigurationException(const std::string &issue, const std::string &result, const std::string &fix)
Definition exceptions.hpp:37
Definition exceptions.hpp:127
ElevatorConfigurationException(const std::string &issue, const std::string &result, const std::string &fix)
Definition exceptions.hpp:136
Definition exceptions.hpp:112
InvalidStageGivenException(const std::string &stage)
Definition exceptions.hpp:119
Definition exceptions.hpp:102
NoStagesGivenException()
Definition exceptions.hpp:105
Definition exceptions.hpp:82
PivotConfigurationException(const std::string &issue, const std::string &result, const std::string &fix)
Definition exceptions.hpp:91
Definition exceptions.hpp:62
SmartMotorControllerConfigurationException(const std::string &issue, const std::string &result, const std::string &fix)
Definition exceptions.hpp:71
Definition exceptions.hpp:48
SwerveDriveConfigurationException(const std::string &message)
Definition exceptions.hpp:55
Definition exceptions.hpp:15
YamsException(const std::string &message)
Definition exceptions.hpp:22
Definition exceptions.hpp:9