1 #ifndef CPPUNIT_EXCEPTION_H
2 #define CPPUNIT_EXCEPTION_H
29 #ifdef CPPUNIT_ENABLE_SOURCELINE_DEPRECATED
35 std::string fileName );
50 const char *what()
const throw();
59 void setMessage(
const Message &message );
61 #ifdef CPPUNIT_ENABLE_SOURCELINE_DEPRECATED
62 long lineNumber()
const;
66 std::string fileName()
const;
68 static const std::string UNKNOWNFILENAME;
69 static const long UNKNOWNLINENUMBER;
89 #endif // CPPUNIT_EXCEPTION_H
Exceptions thrown by failed assertions.Exception is an exception that serves descriptive strings thro...
Definition: Exception.h:19
std::string m_whatMessage
Definition: Exception.h:82
Represents a source line location.Used to capture the failure location in assertion.
Definition: SourceLine.h:30
#define CPPUNIT_NS_END
Definition: Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
SourceLine m_sourceLine
Definition: Exception.h:81
Message associated to an Exception.A message is composed of two items:
Definition: Message.h:38
Message m_message
Definition: Exception.h:80
std::exception SuperClass
Definition: Exception.h:78
#define CPPUNIT_API
Definition: CppUnitApi.h:27