putting shaders changes on a new branch to avoid merge nightmare

This commit is contained in:
Clément Le Bihan
2021-06-08 12:41:32 +02:00
parent 6ff8a20030
commit 4ee45c9c28
6 changed files with 168 additions and 2 deletions

View File

@@ -21,3 +21,8 @@ RAY::Exception::NotCompatibleError::NotCompatibleError(const std::string &expect
RayError(expectionMessage)
{
}
RAY::Exception::WrongInputError::WrongInputError(const std::string &what):
RayError(what)
{
}

View File

@@ -59,6 +59,23 @@ namespace RAY::Exception {
//! @brief A default assignment operator
NotSupportedError &operator=(const NotSupportedError &) = default;
};
//! @brief exception used when an non-supported operation is done
class WrongInputError: public RayError {
public:
//! @brief Create a new exception instance
explicit WrongInputError(const std::string &what = "The input can't be proceed");
//! @brief A default destructor
~WrongInputError() override = default;
//! @brief An exception is copy constructable
WrongInputError(const WrongInputError &) = default;
//! @brief A default assignment operator
WrongInputError &operator=(const WrongInputError &) = default;
};
}
#endif /* !RAYERROR_HPP_ */