tipc
A TIP to LLVM compiler
Error.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <exception>
4 #include <iostream>
5 #include <string>
6 
12 class Error : public std::exception {
13 public:
14  Error(const std::string &msg) : msg(msg) {}
15  virtual const char *what() const noexcept;
16 private:
17  const std::string msg;
18 };
Base class for tipc errors.
Definition: Error.h:12
virtual const char * what() const noexcept
Construct error with message.
Definition: Error.cpp:3
Error(const std::string &msg)
Definition: Error.h:14