COMMS
Template library intended to help with implementation of communication protocols.
ErrorStatus.h
Go to the documentation of this file.
1 //
2 // Copyright 2014 - 2024 (C). Alex Robenko. All rights reserved.
3 //
4 // This Source Code Form is subject to the terms of the Mozilla Public
5 // License, v. 2.0. If a copy of the MPL was not distributed with this
6 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 
10 
11 #pragma once
12 
13 namespace comms
14 {
15 
17 enum class ErrorStatus {
18  Success,
27  InvalidMsgId,
30  NotSupported,
32 };
33 
34 } // namespace comms
35 
Main namespace for all classes / functions of COMMS library.
ErrorStatus
Error statuses reported by the Communication module.
Definition: ErrorStatus.h:17
@ MsgAllocFailure
Used to indicate that message allocation has failed.
@ Success
Used to indicate successful outcome of the operation.
@ NumOfErrorStatuses
Number of supported error statuses, must be last.
@ NotSupported
The operation is not supported.
@ InvalidMsgId
Used to indicate that received message has unknown id.
@ InvalidMsgData
Used to indicate that a message has invalid data.