blob: b737b7bc1aed4cb6305a457a996bc5361e5b5f72 [file] [log] [blame]
Patrick Venture0533d0b2018-12-13 08:48:24 -08001#pragma once
2
3#include <exception>
4#include <string>
5
6class BlobException : public std::exception
7{
8 public:
9 explicit BlobException(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};