API referenceQnbot Exo PlusC++

Errors and exceptions

General reference

Current version · 1.4.0

ExoControlError inherits QnBotError. Its constructor and accessors cover:

ExoControlError(
    std::string message,
    ExoControlErrorKind kind,
    std::optional<std::string> command = std::nullopt,
    std::optional<std::int32_t> device_code = std::nullopt,
    std::optional<std::string> detail = std::nullopt
);

ExoControlErrorKind members are not_connected, invalid_lifecycle, unsupported, unavailable, busy, timeout, protocol, device_rejected, transport, and cancelled.

The SDK reports lifecycle errors as LifecycleError and features unavailable on the current device or configuration as UnavailableFeatureError. Invalid arguments and closed handles use InvalidArgumentError and ClosedHandleError. Device selection may also use AmbiguousSelectionError or NotFoundSelectionError.