msg.inline.h 816 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef AFUN_MSG_INLINE_H
  2. #define AFUN_MSG_INLINE_H
  3. #include "msg.h"
  4. namespace aFuncore {
  5. NormalMessage::NormalMessage(NormalMessage &&msg) noexcept : obj {msg.obj}{
  6. msg.obj = nullptr;
  7. }
  8. Object *NormalMessage::getObject() {
  9. return obj;
  10. }
  11. ErrorMessage::ErrorMessage(ErrorMessage &&msg) noexcept
  12. : inter{msg.inter}, error_type{std::move(msg.error_type)},
  13. error_info{std::move(msg.error_info)}, trackback{std::move(msg.trackback)}{
  14. }
  15. std::string ErrorMessage::getErrorType() const {
  16. return error_type;
  17. }
  18. std::string ErrorMessage::getErrorInfo() const {
  19. return error_info;
  20. }
  21. const std::list<ErrorMessage::TrackBack> &ErrorMessage::getTrackBack() const {
  22. return trackback;
  23. }
  24. }
  25. #endif //AFUN_MSG_INLINE_H