memgraph/include/query_engine/exceptions/errors.hpp
2016-08-10 09:39:02 +01:00

20 lines
455 B
C++

#pragma once
#include "utils/exceptions/basic_exception.hpp"
// TODO: optimaze exceptions in respect to cypher/errors.hpp
class SemanticError : public BasicException
{
public:
SemanticError(const std::string& what) :
BasicException("Semantic error: " + what) {}
};
class CodeGenerationError : public BasicException
{
public:
CodeGenerationError(const std::string& what) :
BasicException("Code Generation error: " + what) {}
};