November 2004
Intermediate to advanced
212 pages
5h 2m
English
ExpectedExceptionTraits
The template
ExpectedExceptionTraits
(see Figure C-6) is
used by TestCaller to expect an
Exception. It is an implementation detail and
should not be used directly. A specialization of this template to
expect that no Exception is defined:
template<> struct ExpectedExceptionTraits<NoExceptionExpected>
The class NoExceptionExpected is used in this
template specialization and should not be used otherwise.
ExpectedExceptionTraits belongs to the namespace
CppUnit. It is declared and implemented in
TestCaller.h.
![]() |
template<typename ExceptionType> struct ExpectedExceptionTraits<ExceptionType>
None.
static void expectedException( )
A method to throw an Exception if the expected
Exception is not caught.
None.
None.
Read now
Unlock full access