1 #ifndef INCLUDEJS_ENGINE_ERROR_H_
2 #define INCLUDEJS_ENGINE_ERROR_H_
4 #include "engine_export.h"
14 struct INCLUDEJS_ENGINE_EXPORT
Frame {
15 const std::optional<std::string> scope;
16 const std::optional<std::filesystem::path> path;
17 const unsigned long long line;
18 const unsigned long long column;
22 class INCLUDEJS_ENGINE_EXPORT
Error :
public std::exception {
24 using FrameContainer = std::vector<Frame>;
27 Error(std::string &&message, FrameContainer &&stacktrace);
28 auto what()
const noexcept ->
const char *
override;
29 auto begin()
const -> FrameContainer::const_iterator;
30 auto end()
const -> FrameContainer::const_iterator;
33 const std::string message;
34 const FrameContainer stacktrace;
Definition: engine_error.h:22
Definition: engine_error.h:14