docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
exceptions.h
Go to the documentation of this file.
1#pragma once
2
3#include <exception>
4#include <string>
5
6#include "sdfg/element.h"
7
8namespace docc {
9namespace lifting {
10
11class NotImplementedException : public std::exception {
12private:
13 std::string message_;
14 sdfg::DebugInfo dbg_info_;
15 std::string element_;
16
17public:
18 NotImplementedException(const std::string& message, sdfg::DebugInfo dbg_info, const std::string& element)
19 : message_(message), dbg_info_(dbg_info), element_(element) {
20 }
21
22 const char* what() const noexcept override {
23 return message_.c_str();
24 }
25
26 const sdfg::DebugInfo& debug_info() const {
27 return dbg_info_;
28 }
29
30 const std::string& element() const {
31 return element_;
32 }
33};
34
35} // namespace lifting
36} // namespace docc
const sdfg::DebugInfo & debug_info() const
Definition exceptions.h:26
const char * what() const noexcept override
Definition exceptions.h:22
NotImplementedException(const std::string &message, sdfg::DebugInfo dbg_info, const std::string &element)
Definition exceptions.h:18
const std::string & element() const
Definition exceptions.h:30
Definition element.h:30
Definition exceptions.h:9
Definition targets.h:8