exception.hpp 409 B

1234567891011121314
  1. #ifndef AFUN_EXCEPTION_HPP
  2. #define AFUN_EXCEPTION_HPP
  3. #include "iostream"
  4. namespace aFuncore {
  5. class AttributesError : public std::exception {
  6. std::string msg;
  7. public:
  8. explicit AttributesError(const std::string &attributes) {msg = (std::string("Get attributes error: ") + attributes);}
  9. virtual const char *what() {return msg.c_str();}
  10. };
  11. }
  12. #endif //AFUN_EXCEPTION_HPP