Exception.cpp 596 B

1234567891011121314151617181920212223242526272829
  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-23
  7. *
  8. * */
  9. #include <ls-std/core/exception/Exception.hpp>
  10. using ls::std::core::Exception;
  11. using std::move;
  12. using std::string;
  13. Exception::Exception(string _name) : name(::move(_name))
  14. {}
  15. Exception::~Exception() noexcept = default;
  16. string Exception::getName() const
  17. {
  18. return this->name;
  19. }
  20. const char *Exception::what() const noexcept
  21. {
  22. return "base exception class in use - method not implemented!";
  23. }