2016-07-25 09:09:40 +08:00
|
|
|
#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) {}
|
|
|
|
};
|
2016-08-01 01:58:12 +08:00
|
|
|
|
|
|
|
class CodeGenerationError : public BasicException
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CodeGenerationError(const std::string& what) :
|
|
|
|
BasicException("Code Generation error: " + what) {}
|
|
|
|
};
|