1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
6 #include "base/i2-base.hpp"
7 #include "base/type.hpp"
8 #include "base/value.hpp"
9 #include "base/exception.hpp"
14 class CircularReferenceError : virtual public user_error
17 CircularReferenceError(String message, std::vector<String> path);
18 ~CircularReferenceError() throw() = default;
20 const char *what(void) const throw() final;
21 std::vector<String> GetPath() const;
25 std::vector<String> m_Path;
28 Value Serialize(const Value& value, int attributeTypes = FAState);
29 Value Deserialize(const Value& value, bool safe_mode = false, int attributeTypes = FAState);
30 Value Deserialize(const Object::Ptr& object, const Value& value, bool safe_mode = false, int attributeTypes = FAState);
34 #endif /* SERIALIZER_H */