mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-22 08:40:03 +01:00
16 lines
821 B
C++
16 lines
821 B
C++
|
#include "error.h"
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
#define EXCEPTION_CLASS_IMPLEMENTATION(NAME, BASE) \
|
||
|
NAME::NAME(const string& message, size_t start, size_t end) : BASE(message), start(start), end(end) {} \
|
||
|
NAME::NAME(const char* message, size_t start, size_t end) : BASE(message), start(start), end(end) {} \
|
||
|
NAME::NAME(const string& message) : BASE(message), start(0), end(0) {} \
|
||
|
NAME::NAME(const char* message) : BASE(message), start(0), end(0) {}
|
||
|
|
||
|
EXCEPTION_CLASS_IMPLEMENTATION(HogQLException, runtime_error)
|
||
|
|
||
|
EXCEPTION_CLASS_IMPLEMENTATION(HogQLSyntaxException, HogQLException)
|
||
|
EXCEPTION_CLASS_IMPLEMENTATION(HogQLNotImplementedException, HogQLException)
|
||
|
EXCEPTION_CLASS_IMPLEMENTATION(HogQLParsingException, HogQLException)
|