blob: af99c2c86ac6038e37704580146948ee19695bbf [file] [log] [blame]
Patrick Venture2bc23fe2018-12-13 10:16:36 -08001#pragma once
2
3#include <exception>
4#include <string>
5
6class ToolException : public std::exception
7{
8 public:
9 explicit ToolException(const std::string& message) : message(message){};
10
11 virtual const char* what() const noexcept override
12 {
13 return message.c_str();
14 }
15
16 private:
17 std::string message;
18};