#include <CError.h>
Inheritance diagram for AxPipe::CError:
Public Member Functions | |
CError () | |
Just initialize the member variables. | |
~CError () | |
Delete the error message, if there is one. | |
void | SetError (int iError, const _TCHAR *szError, const _TCHAR *szParam=NULL) |
Signal an error from derived classes. | |
_TCHAR * | GetErrorMsg () |
Retrieve an error message, if any. | |
int | GetErrorCode () |
Retrieve the error code, if any. | |
Protected Member Functions | |
void | Init (CError *pPrev) |
Used internally to initialize the pointer to previous. Don't call. | |
Private Member Functions | |
void | InError (int iError, _TCHAR *szError) |
Pass the string backwards to the source, where we store it. | |
Private Attributes | |
CError * | m_pPrev |
Point back to previous in pipe. NULL if Source. | |
_TCHAR * | m_szError |
Allocated message, only valid in Source. NULL otherwise. | |
int | m_iError |
Error code, only valid in Source. Success otherwise. |
The most commonly used members in derived classes are SetError() to report an error and GetErrorCode() and GetErrorMsg() to check for errors after plugging the pipe, and getting the error description if needed.
Definition at line 45 of file CError.h.
|
Retrieve the error code, if any. Retrieve an error code, or AxPipe::ERROR_CODE_SUCCESS if no error. This may be called using any object in a pipe, it will backtrace to the source and report the error code there. Definition at line 95 of file CError.cpp. References m_iError, and m_pPrev. Referenced by AxPipe::CSource::Drain(), and AxPipe::CJoin::OutPlug(). |
|
Retrieve an error message, if any. Call using any object in a pipe, it will backtrace to the source and report the error code there.
Definition at line 84 of file CError.cpp. References _TCHAR, m_pPrev, and m_szError. Referenced by AxPipe::CJoin::OutPlug(). |
|