1234567891011121314151617181920212223242526272829303132 |
- #ifndef AFUN_RT_ERROR_MESSAGE_H
- #define AFUN_RT_ERROR_MESSAGE_H
- #include "aFunRuntimeExport.h"
- #include "aFuncore.h"
- #include "rt_top_message.h"
- namespace aFunrt {
- class AFUN_RT_EXPORT ErrorMessage : public TopMessage {
- public:
- struct TrackBack {
- const aFuntool::FilePath path;
- aFuntool::FileLine line;
- };
- explicit ErrorMessage(std::string error_type_, std::string error_info_, aFuncore::Inter &inter);
- AFUN_INLINE ErrorMessage(ErrorMessage &&msg) noexcept;
- void topProgress(aFuncore::Inter &inter_, aFuncore::Activation &activation) override;
- [[nodiscard]] AFUN_INLINE std::string getErrorType() const;
- [[nodiscard]] AFUN_INLINE std::string getErrorInfo() const;
- [[nodiscard]] AFUN_INLINE const std::list<TrackBack> &getTrackBack() const;
- private:
- aFuncore::Inter &inter;
- std::string error_type;
- std::string error_info;
- std::list<TrackBack> trackback;
- };
- }
- #include "rt_error_message.inline.h"
- #endif //AFUN_RT_ERROR_MESSAGE_H
|