FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
errors.h
Go to the documentation of this file.
1// Copyright 2016-2023 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
37namespace 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 */
This namespace defines common errors that can be returned by some FastArduino API methods,...
Definition: errors.h:38
constexpr const int EINVAL
Invalid argument or invalid Future.
Definition: errors.h:49
constexpr const int EIO
Input/output error.
Definition: errors.h:40
constexpr const int EMSGSIZE
Message too long.
Definition: errors.h:68
constexpr const int EPROTO
Protocol error.
Definition: errors.h:58
constexpr const int EAGAIN
Try again.
Definition: errors.h:46
constexpr const int ETIME
Timer expired.
Definition: errors.h:52
constexpr const int EILSEQ
Illegal byte sequence.
Definition: errors.h:65