aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/client/error.hpp
blob: b8a7b3563b1f3510d7a13997dc960fac0d8f41ba (plain) (tree)
1
2
3
4
5




                                                               








                                         
                                                                                            

  
                           
// Copyright (c) 2019 Egor Tensin <Egor.Tensin@gmail.com>
// 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