Go to the documentation of this file. 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
#define CPPUNIT_API
Definition: CppUnitApi.h:27
std::exception SuperClass
Definition: Exception.h:78
Represents a source line location.
Definition: SourceLine.h:31
Message m_message
Definition: Exception.h:80
SourceLine m_sourceLine
Definition: Exception.h:81
Exceptions thrown by failed assertions.
Definition: Exception.h:20
Message associated to an Exception.
Definition: Message.h:35
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:105
#define CPPUNIT_NS_END
Definition: Portability.h:106
std::string m_whatMessage
Definition: Exception.h:82