Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
exec_exception.h
1#ifndef ERROR_CODE_DOMAIN_H
2#define ERROR_CODE_DOMAIN_H
3
4#include "../core/error_code.h"
5#include "./exec_error_domain.h"
6
7namespace ara
8{
9 namespace exec
10 {
12 class ExecException : public std::exception
13 {
14 private:
15 core::ErrorCode mErrorCode;
16
17 public:
18 ExecException() = delete;
19 ~ExecException() noexcept = default;
20
23 explicit ExecException(core::ErrorCode errorCode) noexcept;
24
27 const core::ErrorDomain &GetExecErrorDomain() noexcept;
28
33
37 const core::ErrorCode &GetErrorCode() const noexcept;
38 };
39 }
40}
41
42#endif
A wrapper around the raw error code in a specific ErrorDomain.
Definition: error_code.h:13
A class that defines the domain of an ErrorCode to avoid code interferences.
Definition: error_domain.h:14
Execution Management exception.
Definition: exec_exception.h:13
const core::ErrorCode & GetErrorCode() const noexcept
Get the error code.
Definition: exec_exception.cpp:25
const core::ErrorDomain & GetExecErrorDomain() noexcept
Get the exception error domain.
Definition: exec_exception.cpp:12
core::ErrorCode MakeErrorCode(ExecErrc code) noexcept
Make a error code in the same error domain.
Definition: exec_exception.cpp:17
ExecErrc
Execution Management error codes.
Definition: exec_error_domain.h:13