/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2020-11-06 * Changed: 2024-09-11 * * */ #ifndef LS_STD_NULL_POINTER_EXCEPTION_HPP #define LS_STD_NULL_POINTER_EXCEPTION_HPP #include #include #include /* * @doc: class(name: 'NullPointerException', package: 'core') * @doc: core.NullPointerException.description('This exception can be thrown in case a called reference is null.') * */ namespace ls::std::core { class LS_STD_DYNAMIC_GOAL NullPointerException : public ls::std::core::Exception { public: NullPointerException(); explicit NullPointerException(const ::std::string &_message); ~NullPointerException() noexcept override; [[nodiscard]] const char *what() const noexcept override; }; } #endif