Proud::Exception Class Reference
Inheritance diagram for Proud::Exception:

Public Member Functions

PROUD_API Exception (const char *text)
 
PROUD_API Exception (const wchar_t *text)
 
PROUD_API Exception (std::exception &src)
 
PROUD_API Exception (ErrorInfo *src)
 
PROUD_API Exception (const Exception &src)
 
PROUD_API const char * what () const throw ()
 

Public Attributes

HostID m_remote
 
void * m_pVoidSource
 
std::exception * m_pStdSource
 
ExceptionType m_exceptionType
 
RefCount< ErrorInfom_errorInfoSource
 
String m_userCallbackName
 
void * m_delegateObject
 
StringA chMsg
 

Detailed Description

An exception object that can receive and send an error message as printf(). It's commonly used as followed.

throw Exception("error=%d",error);

Member Function Documentation

PROUD_API const char* Proud::Exception::what ( ) const throw ()

TODO:translate needed.

Member Data Documentation

void* Proud::Exception::m_delegateObject
  • In case exception occurs at user definition callback, the address of object that has been registered by SetEventSink will be inputted.
  • In case exception occurs at user definition RMI Stub, the address of IRmiStub object that has been registered by AttachStub will be inputted.
  • This variable value could be the hint in case it is difficult to find out the problematic function by m_userCallbackName.
RefCount<ErrorInfo> Proud::Exception::m_errorInfoSource

TODO:translate needed.

ExceptionType Proud::Exception::m_exceptionType

Exception Type object

std::exception* Proud::Exception::m_pStdSource

Save pointer of std::exception object

void* Proud::Exception::m_pVoidSource

Save pointer of void*type Exception object

HostID Proud::Exception::m_remote

hostID of remote that occured Exception

String Proud::Exception::m_userCallbackName
  • The relevant name of function will be recorded in case exception occurs at user definition callback.
  • The relevant RMI ID will be recorded in case exception occurs at user definition RMI Stub.