Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bpapaspyros committed Oct 17, 2024
1 parent ad39117 commit ba568bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <iostream>

namespace state_representation::exceptions {
class InvalidVariableStateException : public std::runtime_error {
class InvalidStateVariableException : public std::runtime_error {
public:
explicit InvalidVariableStateException(const std::string& msg) : runtime_error(msg) {};
explicit InvalidStateVariableException(const std::string& msg) : runtime_error(msg) {};
};
}// namespace state_representation::exceptions
Original file line number Diff line number Diff line change
Expand Up @@ -640,13 +640,13 @@ inline state_representation::CartesianStateVariable string_to_cartesian_state_va
} else if (case_insensitive_variable == "all") {
return CartesianStateVariable::ALL;
} else {
throw exceptions::InvalidVariableStateException("Invalid Cartesian state variable: " + variable);
throw exceptions::InvalidStateVariableException("Invalid Cartesian state variable: " + variable);
}
}

/**
* @brief Convert CartesianStateVariable to a string
* @throws exceptions::InvalidVariableStateException
* @throws exceptions::InvalidStateVariableException
* @param variable The CartesianStateVariable enum to convert
* @return A string corresponding to the CartesianStateVariable enum
*/
Expand Down

0 comments on commit ba568bf

Please sign in to comment.