libgpiod exceptions

class chip_closed : public std::logic_error

Exception thrown when an already closed chip is used.

Public Functions

explicit chip_closed(const ::std::string &what)

Constructor.

Parameters:

what – Human readable reason for error.

chip_closed(const chip_closed &other) noexcept

Copy constructor.

Parameters:

other – Object to copy from.

chip_closed(chip_closed &&other) noexcept

Move constructor.

Parameters:

other – Object to move.

chip_closed &operator=(const chip_closed &other) noexcept

Assignment operator.

Parameters:

other – Object to copy from.

Returns:

Reference to self.

chip_closed &operator=(chip_closed &&other) noexcept

Move assignment operator.

Parameters:

other – Object to move.

Returns:

Reference to self.

class request_released : public std::logic_error

Exception thrown when an already released line request is used.

Public Functions

explicit request_released(const ::std::string &what)

Constructor.

Parameters:

what – Human readable reason for error.

request_released(const request_released &other) noexcept

Copy constructor.

Parameters:

other – Object to copy from.

request_released(request_released &&other) noexcept

Move constructor.

Parameters:

other – Object to move.

request_released &operator=(const request_released &other) noexcept

Assignment operator.

Parameters:

other – Object to copy from.

Returns:

Reference to self.

request_released &operator=(request_released &&other) noexcept

Move assignment operator.

Parameters:

other – Object to move.

Returns:

Reference to self.

class bad_mapping : public std::runtime_error

Exception thrown when the core C library returns an invalid value for any of the line_info properties.

Public Functions

explicit bad_mapping(const ::std::string &what)

Constructor.

Parameters:

what – Human readable reason for error.

bad_mapping(const bad_mapping &other) noexcept

Copy constructor.

Parameters:

other – Object to copy from.

bad_mapping(bad_mapping &&other) noexcept

Move constructor.

Parameters:

other – Object to move.

bad_mapping &operator=(const bad_mapping &other) noexcept

Assignment operator.

Parameters:

other – Object to copy from.

Returns:

Reference to self.

bad_mapping &operator=(bad_mapping &&other) noexcept

Move assignment operator.

Parameters:

other – Object to move.

Returns:

Reference to self.