Diag-Client-Lib
Namespaces | Classes | Enumerations | Functions
doip_client::error_domain Namespace Reference

Namespaces

 anonymous_namespace{doip_error_domain.cpp}
 

Classes

class  DoipErrorDomain
 Definition of Doip Client Error domain. More...
 

Enumerations

enum class  DoipErrorErrc : core_type::ErrorDomain::CodeType { kInitializationFailed = 0U , kDeInitializationFailed = 1U , kSocketError = 2U , kGenericError = 3U }
 Definition of error code in Doip Client. More...
 

Functions

core_type::ErrorCode MakeErrorCode (DoipErrorErrc code, core_type::ErrorDomain::SupportDataType data=core_type::ErrorDomain::SupportDataType{}) noexcept
 Create a new ErrorCode within DoipErrorDomain. More...
 

Enumeration Type Documentation

◆ DoipErrorErrc

Definition of error code in Doip Client.

Enumerator
kInitializationFailed 

Failure on Initialization

kDeInitializationFailed 

Failure on De-Initialization

kSocketError 

Failure on Socket Open/Destroy

kGenericError 

Generic Error

Definition at line 22 of file doip_error_domain.h.

Function Documentation

◆ MakeErrorCode()

core_type::ErrorCode doip_client::error_domain::MakeErrorCode ( DoipErrorErrc  code,
core_type::ErrorDomain::SupportDataType  data = core_type::ErrorDomain::SupportDataType{} 
)
noexcept

Create a new ErrorCode within DoipErrorDomain.

This function is used internally by constructors of ErrorCode. It is usually not used directly by users

Parameters
[in]codeThe DoipErrorDomain-specific error code value
[in]dataThe optional vendor-specific error data
Returns
ErrorCode A new ErrorCode instance

Definition at line 61 of file doip_error_domain.cpp.

61  {
63 }
Encapsulation of an error code. An ErrorCode contains a raw error code value and an error domain....
Definition: error_code.h:22

References doip_client::error_domain::anonymous_namespace{doip_error_domain.cpp}::doip_error_domain.

Referenced by doip_client::sockets::TcpSocketHandler::ConnectToHost(), doip_client::sockets::TcpSocketHandler::DisconnectFromHost(), doip_client::sockets::TcpSocketHandler::Transmit(), and doip_client::sockets::UdpSocketHandler::Transmit().

Here is the caller graph for this function: