Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
exec_error_domain.h
1#ifndef EXEC_ERROR_DOMAIN_H
2#define EXEC_ERROR_DOMAIN_H
3
4#include "../core/error_domain.h"
5
6namespace ara
7{
9 namespace exec
10 {
13 {
14 kGeneralError = 1,
17 kMetaModelError = 4,
18 kCancelled = 5,
19 kFailed = 6,
23 kAlreadyInState = 10,
25 kNoTimeStamp = 12,
26 kCycleOverrun = 13
27 };
28
31 {
32 private:
33 static const core::ErrorDomain::IdType cDomainId{0x8000000000000202};
34
35 public:
36 ExecErrorDomain() noexcept;
37
38 const char *Name() const noexcept override;
39
40 const char *Message(
41 core::ErrorDomain::CodeType errorCode) const noexcept override;
42 };
43 }
44}
45
46#endif
A class that defines the domain of an ErrorCode to avoid code interferences.
Definition: error_domain.h:14
uint64_t IdType
Alias type of the domain ID.
Definition: error_domain.h:17
uint32_t CodeType
Alias type of the error code.
Definition: error_domain.h:19
Execution Management ErrorDomain.
Definition: exec_error_domain.h:31
const char * Name() const noexcept override
Get the domain's name.
Definition: exec_error_domain.cpp:13
const char * Message(core::ErrorDomain::CodeType errorCode) const noexcept override
Get error message of a specific error code.
Definition: exec_error_domain.cpp:18
ExecErrc
Execution Management error codes.
Definition: exec_error_domain.h:13
@ kGeneralError
Unspecified error occurrence.
@ kFailedUnexpectedTerminationOnExit
Previous function group termination while state transition.
@ kInTransitionToSameState
Transition failing due to equality to the on-going state transition.
@ kCycleOverrun
Exceeding theoritical cycle time.
@ kCommunicationError
SOME/IP or FIFO communication error occurrence.
@ kFailedUnexpectedTerminationOnEnter
Target function group termination while state transition.
@ kCancelled
Cancelling of the on-going state transition due to a new state trainsition request.
@ kInvalidTransition
Invalid state transition request.
@ kFailed
Impossible operation to be performed.
@ kMetaModelError
Invalid ARXML meta-model.
@ kNoTimeStamp
Unavailable deterministic timestamp information.
@ kInvalidArguments
Invalid argument while setting the state.
@ kAlreadyInState
Invalid state transition due to request the current state.