/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2023-02-10 * Changed: 2024-09-11 * * */ #ifndef LS_STD_INDEX_OUT_OF_BOUNDS_EXCEPTION_HPP #define LS_STD_INDEX_OUT_OF_BOUNDS_EXCEPTION_HPP #include #include #include /* * @doc: class(name: 'IndexOutOfBoundsException', package: 'core') * @doc: core.IndexOutOfBoundsException.description('This exception can be thrown in case an index of an array like structure is out of bounds.') * */ namespace ls::std::core { class LS_STD_DYNAMIC_GOAL IndexOutOfBoundsException : public ls::std::core::Exception { public: IndexOutOfBoundsException(); explicit IndexOutOfBoundsException(const ::std::string &_message); ~IndexOutOfBoundsException() noexcept override; [[nodiscard]] const char *what() const noexcept override; }; } #endif