Exception.cpp 603 B

12345678910111213141516171819202122232425
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-22
  6. * Changed: 2023-02-22
  7. *
  8. * */
  9. #include <ls-std/core/exception/Exception.hpp>
  10. ls::std::core::Exception::Exception(::std::string _name) : name(::std::move(_name))
  11. {}
  12. ls::std::core::Exception::~Exception() = default;
  13. ::std::string ls::std::core::Exception::getName() const
  14. {
  15. return this->name;
  16. }
  17. const char *ls::std::core::Exception::what() const noexcept
  18. {
  19. return "base exception class class in use - method not implemented!";
  20. }