#ifndef QTJSONSERIALIZER_EXCEPTIONCONTEXT_P_H #define QTJSONSERIALIZER_EXCEPTIONCONTEXT_P_H #include "qtjsonserializer_global.h" #include "exception.h" #include #include #include namespace QtJsonSerializer { class Q_JSONSERIALIZER_EXPORT ExceptionContext { public: ExceptionContext(const QMetaProperty &property); ExceptionContext(int propertyType, const QByteArray &hint); ~ExceptionContext(); static SerializationException::PropertyTrace currentContext(); static int currentDepth(); private: static QThreadStorage contextStore; }; Q_DECLARE_LOGGING_CATEGORY(logExceptCtx) } #endif // QTJSONSERIALIZER_EXCEPTIONCONTEXT_P_H