Diarkis C++Client Library API Document
Diarkis::DiarkisExceptionEventArgs Struct Reference

Arguments of the callback event called when sending or receiving fails in P2P. More...

#include <eventArgs.h>

Public Member Functions

uint32_t GetErrorCode () const
 Get error code. More...
 
const Diarkis::StdStringGetErrorMessage () const
 Gets the contents of the error. More...
 
 DiarkisExceptionEventArgs (uint32_t errorCode, const Diarkis::StdString &message)
 
 DiarkisExceptionEventArgs (DiarkisExceptionEventArgs &)=delete
 
 DiarkisExceptionEventArgs (DiarkisExceptionEventArgs &&)=delete
 

Detailed Description

Arguments of the callback event called when sending or receiving fails in P2P.

Constructor & Destructor Documentation

◆ DiarkisExceptionEventArgs() [1/3]

Diarkis::DiarkisExceptionEventArgs::DiarkisExceptionEventArgs ( uint32_t  errorCode,
const Diarkis::StdString message 
)

◆ DiarkisExceptionEventArgs() [2/3]

Diarkis::DiarkisExceptionEventArgs::DiarkisExceptionEventArgs ( DiarkisExceptionEventArgs )
delete

◆ DiarkisExceptionEventArgs() [3/3]

Diarkis::DiarkisExceptionEventArgs::DiarkisExceptionEventArgs ( DiarkisExceptionEventArgs &&  )
delete

Member Function Documentation

◆ GetErrorCode()

uint32_t Diarkis::DiarkisExceptionEventArgs::GetErrorCode ( ) const

Get error code.

Return 0 if IsSuccess()=true.

Here is the caller graph for this function:

◆ GetErrorMessage()

const Diarkis::StdString& Diarkis::DiarkisExceptionEventArgs::GetErrorMessage ( ) const

Gets the contents of the error.

Here is the caller graph for this function:

The documentation for this struct was generated from the following file: