// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include namespace vespalib { class JsonStreamException : public Exception { string _reason; public: JsonStreamException(stringref reason, stringref history, stringref location, int skipStack = 0); stringref getReason() const { return _reason; } VESPA_DEFINE_EXCEPTION_SPINE(JsonStreamException); ~JsonStreamException(); }; }