:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
#include "error.h"
using namespace std;
#define ERROR_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) {}
ERROR_CLASS_IMPLEMENTATION(HogQLError, runtime_error)
ERROR_CLASS_IMPLEMENTATION(SyntaxError, HogQLError)
ERROR_CLASS_IMPLEMENTATION(NotImplementedError, HogQLError)
ERROR_CLASS_IMPLEMENTATION(ParsingError, HogQLError)
PyInternalError::PyInternalError() : exception() {}