summaryrefslogtreecommitdiffstatshomepage
path: root/client/error.hpp
blob: 4a7c7a197f6be19e2b847f4f921c3265f8785dc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2019 Egor Tensin <egor@tensin.name>
// This file is part of the "math-server" project.
// For details, see https://github.com/egor-tensin/math-server.
// Distributed under the MIT License.

#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} {}
};

} // namespace math::client