FastArduino  v1.8
C++ library to build fast but small Arduino/AVR projects
errors.h
Go to the documentation of this file.
1 // Copyright 2016-2021 Jean-Francois Poilpret
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
16 
21 #ifndef ERRORS_HH
22 #define ERRORS_HH
23 
37 namespace errors
38 {
40  constexpr const int EIO = -5;
41 
46  constexpr const int EAGAIN = -11;
47 
49  constexpr const int EINVAL = -22;
50 
52  constexpr const int ETIME = -62;
53 
58  constexpr const int EPROTO = -71;
59 
65  constexpr const int EILSEQ = -84;
66 
68  constexpr const int EMSGSIZE = -90;
69 }
70 
71 #endif /* ERRORS_HH */
72 
errors::EMSGSIZE
constexpr const int EMSGSIZE
Message too long.
Definition: errors.h:68
errors::EAGAIN
constexpr const int EAGAIN
Try again.
Definition: errors.h:46
errors::EILSEQ
constexpr const int EILSEQ
Illegal byte sequence.
Definition: errors.h:65
errors
This namespace defines common errors that can be returned by some FastArduino API methods,...
Definition: errors.h:38
errors::EINVAL
constexpr const int EINVAL
Invalid argument or invalid Future.
Definition: errors.h:49
errors::EIO
constexpr const int EIO
Input/output error.
Definition: errors.h:40
errors::ETIME
constexpr const int ETIME
Timer expired.
Definition: errors.h:52
errors::EPROTO
constexpr const int EPROTO
Protocol error.
Definition: errors.h:58