Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
公開メンバ関数 | 全メンバ一覧
WinUnit::AssertException クラスabstract

#include <WinUnit.h>

WinUnit::AssertException の継承関係図
WinUnit::AssertExceptionW< MAX_ASSERT_MESSAGE_LENGTH > WinUnit::AssertExceptionW< size > WinUnit::AssertExceptionA< size >

公開メンバ関数

virtual const wchar_t * Message ()=0
 Returns the message associated with this exception.
 
virtual ‾AssertException ()=0
 

詳解

AssertException is a base class for wide-character and ANSI versions, used when _UNICODE is defined or not defined, respectively. The "Message" method is wide-character-only, so the ANSI version has to account for this. You do not need to use this class if you are not implementing your own asserts–use the WIN_ASSERT* macros instead (see Assert Macros and Functions).

注釈
If you're implementing your own "asserts", you should use the derived AssertExceptionT instead (actually a preprocessor define replaced by AssertExceptionW in Unicode and AssertExceptionA in ANSI). You can think of it as declared like this:
{
public:
// Append a formatted message to the exception's Message string. "message"
// is a printf-style format string; "..." and "args" are two ways of passing
// in the variable-length argument list.
void AppendMessage(const TCHAR* message, ...);
void AppendMessage(const TCHAR* message, va_list args);
virtual const wchar_t* Message();
};
#define AssertExceptionT
Definition WinUnit.h:424
Definition WinUnit.h:410

関数詳解

◆ ‾AssertException()

virtual WinUnit::AssertException::‾AssertException ( )
inlinepure virtual

◆ Message()

virtual const wchar_t * WinUnit::AssertException::Message ( )
pure virtual

Returns the message associated with this exception.

WinUnit::AssertExceptionW< size >, WinUnit::AssertExceptionW< MAX_ASSERT_MESSAGE_LENGTH >で実装されています。


このクラス詳解は次のファイルから抽出されました: