#ifndef BABELTRACE_CPP_COMMON_BT2_EXC_HPP
#define BABELTRACE_CPP_COMMON_BT2_EXC_HPP
-#include <stdexcept>
-#include <string>
-
-#include "cpp-common/exc.hpp"
+#include "cpp-common/bt2c/exc.hpp"
namespace bt2 {
-using Error = bt2_common::Error;
-using OverflowError = bt2_common::OverflowError;
-using MemoryError = bt2_common::MemoryError;
+using Error = bt2c::Error;
+using OverflowError = bt2c::OverflowError;
+using MemoryError = bt2c::MemoryError;
+using TryAgain = bt2c::TryAgain;
+
+/*
+ * Unknown query object.
+ */
+class UnknownObject : public std::exception
+{
+public:
+ explicit UnknownObject() noexcept = default;
+};
} /* namespace bt2 */