EmbeddedProto
2.0.0
EmbeddedProto is a C++ Protocol Buffer implementation specifically suitable for microcontrollers.
src
Errors.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Embedded AMS B.V. - All Rights Reserved
3
*
4
* This file is part of Embedded Proto.
5
*
6
* Embedded Proto is open source software: you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License as published
8
* by the Free Software Foundation, version 3 of the license.
9
*
10
* Embedded Proto is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with Embedded Proto. If not, see <https://www.gnu.org/licenses/>.
17
*
18
* For commercial and closed source application please visit:
19
* <https://EmbeddedProto.com/license/>.
20
*
21
* Embedded AMS B.V.
22
* Info:
23
* info at EmbeddedProto dot com
24
*
25
* Postal address:
26
* Johan Huizingalaan 763a
27
* 1066 VH, Amsterdam
28
* the Netherlands
29
*/
30
31
#ifndef _ERRORS_H_
32
#define _ERRORS_H_
33
34
namespace
EmbeddedProto
35
{
36
38
enum class
Error
39
{
40
NO_ERRORS
= 0,
41
END_OF_BUFFER
= 1,
42
BUFFER_FULL
= 2,
43
INVALID_WIRETYPE
= 3,
44
ARRAY_FULL
= 4,
45
};
46
47
};
// End of namespace EmbeddedProto
48
49
#endif // End of _ERRORS_H_
EmbeddedProto::Error::INVALID_WIRETYPE
@ INVALID_WIRETYPE
When reading a Wiretype from the tag we got an invalid value.
EmbeddedProto
Definition:
Errors.h:34
EmbeddedProto::Error::NO_ERRORS
@ NO_ERRORS
No errors have occurred.
EmbeddedProto::Error
Error
This enumeration defines errors which can occur during serialization and deserialization.
Definition:
Errors.h:38
EmbeddedProto::Error::END_OF_BUFFER
@ END_OF_BUFFER
While trying to read from the buffer we ran out of bytes tor read.
EmbeddedProto::Error::ARRAY_FULL
@ ARRAY_FULL
The array is full, it is not possible to push more items in it.
EmbeddedProto::Error::BUFFER_FULL
@ BUFFER_FULL
The write buffer is full, unable to push more bytes in to it.
Generated by
1.8.17