|
livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
|
Errors of Context / Device. Session-level failures are wrapped, not re-encoded. More...
#include <livox/mid360/event.hpp>
Public Types | |
| enum class | Kind : std::uint8_t { kSession , kInvalidArgument , kInvalidState , kAlreadyRegistered , kNotOpen , kDisconnected , kDecodeFailed , kIo } |
| Error category; selects the meaningful fields. More... | |
Public Attributes | |
| Kind | kind = Kind::kSession |
| error category | |
| std::optional< SessionError > | session |
| kSession only | |
| std::optional< Key > | key |
| kInvalidArgument (out-of-range FOV window) / kDecodeFailed | |
| int | errno_value = 0 |
| kIo only | |
|
strong |
Error category; selects the meaningful fields.
| Enumerator | |
|---|---|
| kSession | see session |
| kInvalidArgument | option rejected before any I/O |
| kInvalidState | e.g. callback set while running, command from a callback |
| kAlreadyRegistered | |
| kNotOpen | Device was closed (or never opened). |
| kDisconnected | command refused: the Device is between kDisconnected and kReconnected |
| kDecodeFailed | get<K>(): the ACK lacked key or its value did not decode (#57) |
| kIo | file_log_handler(): the file could not be opened, see errno_value |