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
7
namespace
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
32
core::ErrorCode
MakeErrorCode
(
ExecErrc
code)
noexcept
;
33
37
const
core::ErrorCode
&
GetErrorCode
()
const
noexcept
;
38
};
39
}
40
}
41
42
#endif
ara::core::ErrorCode
A wrapper around the raw error code in a specific ErrorDomain.
Definition:
error_code.h:13
ara::core::ErrorDomain
A class that defines the domain of an ErrorCode to avoid code interferences.
Definition:
error_domain.h:14
ara::exec::ExecException
Execution Management exception.
Definition:
exec_exception.h:13
ara::exec::ExecException::GetErrorCode
const core::ErrorCode & GetErrorCode() const noexcept
Get the error code.
Definition:
exec_exception.cpp:25
ara::exec::ExecException::GetExecErrorDomain
const core::ErrorDomain & GetExecErrorDomain() noexcept
Get the exception error domain.
Definition:
exec_exception.cpp:12
ara::exec::ExecException::MakeErrorCode
core::ErrorCode MakeErrorCode(ExecErrc code) noexcept
Make a error code in the same error domain.
Definition:
exec_exception.cpp:17
ara::exec::ExecErrc
ExecErrc
Execution Management error codes.
Definition:
exec_error_domain.h:13
src
ara
exec
exec_exception.h
Generated by
1.9.2