Fabric 0.2.0
Loading...
Searching...
No Matches
exception.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <stdexcept>
4#include <string>
5
6
7namespace fabric
8{
13struct fabric_exception : public std::runtime_error
14{
15 using std::runtime_error::runtime_error;
16
17 fabric_exception(const std::string& what) : std::runtime_error(what)
18 {
19 }
20
21 virtual const char* what() const noexcept override
22 {
23 return std::runtime_error::what();
24 }
25};
26}
Definition parser_base.hpp:9
Base class for driver exceptions.
Definition exception.hpp:14
fabric_exception(const std::string &what)
Definition exception.hpp:17
virtual const char * what() const noexcept override
Definition exception.hpp:21