aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/server/parser/error.hpp
blob: 6862a8f33f992e64ced66741f190029fe98ed9bc (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 "../common/error.hpp"

#include <string>

namespace math::server {

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

} // namespace math::server