Proud::IDbCacheServerDelegate2 Class Referenceabstract

Public Member Functions

virtual void OnError (ErrorInfo *errorInfo)=0
 
virtual void OnWarning (ErrorInfo *errorInfo)=0
 
virtual void OnException (Exception &e)=0
 
virtual void OnDbmsWriteDone (DbmsWritePropNodePendType type)
 

Detailed Description

This is delegate object that handle callback event from CDbCacheServer2 or callback method which developer has to realize.

Member Function Documentation

virtual void Proud::IDbCacheServerDelegate2::OnDbmsWriteDone ( DbmsWritePropNodePendType  type)
inlinevirtual

Direct writing process to DBMS is running asynchronously in DB cache server2. When asynchronous writting process has finished, this method will callback from internal thread in DB cache server.

  • We recommend to use override keyword on Visual Studio 2005 or above.
    Parameters
    typeSort of finished DBMS history (PropNode)
virtual void Proud::IDbCacheServerDelegate2::OnError ( ErrorInfo errorInfo)
pure virtual

TODO:translate needed It calls when it occurs internal error.

Parameters
errorinfoInformation of error.
virtual void Proud::IDbCacheServerDelegate2::OnException ( Exception e)
pure virtual

Merge to Proud.Exception

  • It handle error that occur from user code.
  • User realize things that user needed.
  • You can use Exceptiontype that obtain Exception object.
  • It process _com_error, void*, std::exception, etc. Also there is OnUnhandledException() that handle catch(...)
  • void* can obtain exceptional object type by casting. For example, it uses obtaining MFC CException.
virtual void Proud::IDbCacheServerDelegate2::OnWarning ( ErrorInfo errorInfo)
pure virtual

TODO:translate needed It calls when it occurs internal warning. It reports problem that not serious than error.

Parameters
errorinfoInformation of error.