livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
Loading...
Searching...
No Matches
livox::mid360::DeviceError Struct Reference

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

Detailed Description

Errors of Context / Device. Session-level failures are wrapped, not re-encoded.

Member Enumeration Documentation

◆ Kind

enum class livox::mid360::DeviceError::Kind : std::uint8_t
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 

another Device with the same IP is open on this Context

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


The documentation for this struct was generated from the following file: