aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/client/error.hpp
blob: 98e130574be95993d9cbf4786d4884dac5623ff8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include <stdexcept>
#include <string>

namespace math::client {

class Error : public std::runtime_error {
public:
    explicit Error(const std::string& what)
        : std::runtime_error{"client error: " + what}
    { }
};

}