DUDS
Distributed Update of Data from Something
EvdevErrors.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of the DUDS project. It is subject to the BSD-style
3  * license terms in the LICENSE file found in the top-level directory of this
4  * distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
5  * No part of DUDS, including this file, may be copied, modified, propagated,
6  * or distributed except according to the terms contained in the LICENSE file.
7  *
8  * Copyright (C) 2020 Jeff Jackowski
9  */
10 #include <boost/exception/exception.hpp>
11 #include <boost/exception/info.hpp>
12 #include <cstdint>
13 
14 #ifdef linux
15 // !@?!#?!#?
16 #undef linux
17 #endif
18 
19 namespace duds { namespace os { namespace linux {
20 
24 struct EvdevError : virtual std::exception, virtual boost::exception { };
25 
30 
35 
41 
46 
52 
58 
63 
67 typedef boost::error_info<struct Info_EvdevEventType, unsigned int>
69 
73 typedef boost::error_info<struct Info_EvdevEventCode, unsigned int>
75 
79 typedef boost::error_info<struct Info_EvdevEventType, std::string>
81 
85 typedef boost::error_info<struct Info_EvdevEventCode, std::string>
87 
91 typedef boost::error_info<struct Info_EvdevEventValue, std::int32_t>
93 
94 } } }
The specified event type or code is not supported by the input device.
Definition: EvdevErrors.hpp:45
boost::error_info< struct Info_EvdevEventType, unsigned int > EvdevEventType
The event type integer involved in an EvdevError.
Definition: EvdevErrors.hpp:68
An attempt was made to add an event type to a device that cannot support the type, or the type is invalid.
Definition: EvdevErrors.hpp:51
The input device file could not be opened.
Definition: EvdevErrors.hpp:29
boost::error_info< struct Info_EvdevEventType, std::string > EvdevEventTypeName
The event type string involved in an EvdevError.
Definition: EvdevErrors.hpp:80
boost::error_info< struct Info_EvdevEventCode, std::string > EvdevEventCodeName
The event code string involved in an EvdevError.
Definition: EvdevErrors.hpp:86
boost::error_info< struct Info_EvdevEventCode, unsigned int > EvdevEventCode
The event code integer involved in an EvdevError.
Definition: EvdevErrors.hpp:74
An error occured while attempting to create an input device.
Definition: EvdevErrors.hpp:62
An attempt was made to open a device file when one was already open.
Definition: EvdevErrors.hpp:34
Base class for errors from libevdev.
Definition: EvdevErrors.hpp:24
boost::error_info< struct Info_EvdevEventValue, std::int32_t > EvdevEventValue
The event value, usually an input value, involved in an EvdevError.
Definition: EvdevErrors.hpp:92
Initializing use of the input device failed.
Definition: EvdevErrors.hpp:40
An attempt was made to add an event code to a device that cannot support the code, or the code is invalid.
Definition: EvdevErrors.hpp:57