Proud::ErrorInfo Class Reference

Public Member Functions

PROUD_API String ToString () const
 
ErrorInfoClone ()
 

Static Public Member Functions

static PROUD_API ErrorInfoPtr FromSocketError (ErrorType code, SocketErrorCode se)
 
static PROUD_API ErrorInfoPtr From (ErrorType errorType, HostID remote=HostID_None, const String &comment=String(), const ByteArray &lastReceivedMessage=ByteArray())
 
static PROUD_API const PNTCHAR * TypeToString (ErrorType e)
 
static PROUD_API const PNTCHAR * TypeToString_Kor (ErrorType e)
 
static PROUD_API const PNTCHAR * TypeToString_Eng (ErrorType e)
 
static PROUD_API const PNTCHAR * TypeToString_Chn (ErrorType e)
 

Public Attributes

ErrorType m_errorType
 
ErrorType m_detailType
 
SocketErrorCode m_socketError
 
HostID m_remote
 
String m_comment
 
AddrPort m_remoteAddr
 
ByteArray m_lastReceivedMessage
 
HRESULT m_hResult
 
String m_source
 

Detailed Description

Object contains error(or success) info

Member Function Documentation

ErrorInfo* Proud::ErrorInfo::Clone ( )

TODO:translate needed.

static PROUD_API ErrorInfoPtr Proud::ErrorInfo::From ( ErrorType  errorType,
HostID  remote = HostID_None,
const String comment = String(),
const ByteArray lastReceivedMessage = ByteArray() 
)
static

TODO:translate needed.

static PROUD_API ErrorInfoPtr Proud::ErrorInfo::FromSocketError ( ErrorType  code,
SocketErrorCode  se 
)
static

TODO:translate needed.

PROUD_API String Proud::ErrorInfo::ToString ( ) const

Change error contents to string

static PROUD_API const PNTCHAR* Proud::ErrorInfo::TypeToString ( ErrorType  e)
static

Change error contents to string

static PROUD_API const PNTCHAR* Proud::ErrorInfo::TypeToString_Chn ( ErrorType  e)
static

Change ErrorType value to string (Simplified Chinese)

static PROUD_API const PNTCHAR* Proud::ErrorInfo::TypeToString_Eng ( ErrorType  e)
static

Change ErrorType value to string (English)

static PROUD_API const PNTCHAR* Proud::ErrorInfo::TypeToString_Kor ( ErrorType  e)
static

Change ErrorType value to string (Korean)

Member Data Documentation

String Proud::ErrorInfo::m_comment

Information of additional string

ErrorType Proud::ErrorInfo::m_detailType

Value for m_errorType

m_detailType indicates how disconnection occurs with more details at INetClientEvent.OnLeaveServer and INetServerEvent.OnClientLeave For an example, it enters ErrorType_TCPConnectFailure when disconnection occurs as client program terminates or enters ErrorType_ConnectServerTimeout when disconnection occurs due to power failure and/or physical cable disconnection.

ErrorType Proud::ErrorInfo::m_errorType

Error type. If there is no error then ErrorType_Ok.

HRESULT Proud::ErrorInfo::m_hResult

HRESULT value using for DB

ByteArray Proud::ErrorInfo::m_lastReceivedMessage

Save wrong last message when case of ErrorType_InvalidPacketFormat

HostID Proud::ErrorInfo::m_remote

Host that occur error

SocketErrorCode Proud::ErrorInfo::m_socketError

Error code for socket error

String Proud::ErrorInfo::m_source

Source using for DB