Loading...
Searching...
No Matches
exception.hpp
Go to the documentation of this file.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/* SPDX-FileCopyrightText: 2021-2022 Bartosz Golaszewski <brgl@bgdev.pl> */
#ifndef __LIBGPIOD_CXX_EXCEPTION_HPP__
#define __LIBGPIOD_CXX_EXCEPTION_HPP__
#if !defined(__LIBGPIOD_GPIOD_CXX_INSIDE__)
#error "Only gpiod.hpp can be included directly."
#endif
#include <stdexcept>
#include <string>
namespace gpiod {
class GPIOD_CXX_API chip_closed final : public ::std::logic_error
{
public:
explicit chip_closed(const ::std::string& what);
chip_closed(const chip_closed& other) noexcept;
chip_closed(chip_closed&& other) noexcept;
chip_closed& operator=(const chip_closed& other) noexcept;
chip_closed& operator=(chip_closed&& other) noexcept;
~chip_closed();
};
class GPIOD_CXX_API request_released final : public ::std::logic_error
{
public:
explicit request_released(const ::std::string& what);
request_released(const request_released& other) noexcept;
request_released(request_released&& other) noexcept;
request_released& operator=(const request_released& other) noexcept;
request_released& operator=(request_released&& other) noexcept;
~request_released();
};
class GPIOD_CXX_API bad_mapping final : public ::std::runtime_error
{
public:
explicit bad_mapping(const ::std::string& what);
bad_mapping(const bad_mapping& other) noexcept;
bad_mapping(bad_mapping&& other) noexcept;
bad_mapping& operator=(const bad_mapping& other) noexcept;
bad_mapping& operator=(bad_mapping&& other) noexcept;
~bad_mapping();
};
} /* namespace gpiod */
#endif /* __LIBGPIOD_CXX_EXCEPTION_HPP__ */
gpiod::bad_mapping::bad_mapping
bad_mapping(const bad_mapping &other) noexcept
Copy constructor.
gpiod::bad_mapping::operator=
bad_mapping & operator=(const bad_mapping &other) noexcept
Assignment operator.
gpiod::bad_mapping::bad_mapping
bad_mapping(const ::std::string &what)
Constructor.
gpiod::bad_mapping::~bad_mapping
~bad_mapping()
gpiod::bad_mapping::operator=
bad_mapping & operator=(bad_mapping &&other) noexcept
Move assignment operator.
gpiod::bad_mapping::bad_mapping
bad_mapping(bad_mapping &&other) noexcept
Move constructor.
gpiod::chip_closed::operator=
chip_closed & operator=(const chip_closed &other) noexcept
Assignment operator.
gpiod::chip_closed::operator=
chip_closed & operator=(chip_closed &&other) noexcept
Move assignment operator.
gpiod::chip_closed::~chip_closed
~chip_closed()
gpiod::chip_closed::chip_closed
chip_closed(const chip_closed &other) noexcept
Copy constructor.
gpiod::chip_closed::chip_closed
chip_closed(chip_closed &&other) noexcept
Move constructor.
gpiod::chip_closed::chip_closed
chip_closed(const ::std::string &what)
Constructor.
gpiod::request_released::request_released
request_released(const ::std::string &what)
Constructor.
gpiod::request_released::request_released
request_released(const request_released &other) noexcept
Copy constructor.
gpiod::request_released::operator=
request_released & operator=(const request_released &other) noexcept
Assignment operator.
gpiod::request_released::~request_released
~request_released()
gpiod::request_released::request_released
request_released(request_released &&other) noexcept
Move constructor.
gpiod::request_released::operator=
request_released & operator=(request_released &&other) noexcept
Move assignment operator.
gpiod
Definition chip-info.hpp:18