You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
563 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. //
  2. // Created by zhaohe on 19-5-21.
  3. //
  4. #include "zexception.hpp"
  5. #include <stdarg.h>
  6. #include <iostream>
  7. #include <thread>
  8. #include "spdlog/spdlog.h"
  9. using namespace std;
  10. using namespace iflytop;
  11. using namespace core;
  12. zexception::zexception(string description) {
  13. m_description = description;
  14. m_what += "\n=======================Exception=======================\n";
  15. m_what += "= Description: " + m_description + "\n";
  16. m_what += "=";
  17. }
  18. zexception::~zexception() {}
  19. const char *zexception::what() const _GLIBCXX_USE_NOEXCEPT { return m_what.c_str(); }