A class that defines the domain of an ErrorCode to avoid code interferences. More...
#include <error_domain.h>
Public Types | |
| using | IdType = uint64_t |
| Alias type of the domain ID. | |
| using | CodeType = uint32_t |
| Alias type of the error code. | |
Public Member Functions | |
| constexpr | ErrorDomain (IdType id) noexcept |
| Constructor. More... | |
| ErrorDomain (const ErrorDomain &)=delete | |
| ErrorDomain (ErrorDomain &&)=delete | |
| ErrorDomain & | operator= (const ErrorDomain &)=delete |
| ErrorDomain & | operator= (ErrorDomain &&)=delete |
| constexpr bool | operator== (const ErrorDomain &other) const noexcept |
| constexpr bool | operator!= (const ErrorDomain &other) const noexcept |
| constexpr IdType | Id () const noexcept |
| Get the domain ID. More... | |
| virtual const char * | Name () const noexcept=0 |
| Get the domain's name. More... | |
| virtual const char * | Message (CodeType errorCode) const noexcept=0 |
| Get error message of a specific error code. More... | |
A class that defines the domain of an ErrorCode to avoid code interferences.
|
inlineexplicitconstexprnoexcept |
Constructor.
| id | Error domain ID |
|
inlineconstexprnoexcept |
Get the domain ID.
|
pure virtualnoexcept |
Get error message of a specific error code.
| errorCode | Error code of interest |
Implemented in ara::diag::DiagErrorDomain, and ara::exec::ExecErrorDomain.
|
pure virtualnoexcept |
Get the domain's name.
Implemented in ara::diag::DiagErrorDomain, and ara::exec::ExecErrorDomain.