Added Exception and its tests.
[libsex.git] / tests / CountingException.cxx
bloba3aae5910b740042b11b7f15d5dbcb20c8cfe1b4
1 #include <tests/CountingException.hxx>
3 int CountingException::instances = 0;
5 CountingException::CountingException(
6 const char* const message)
7 : libsex::Exception(message)
9 CountingException::instances++;
12 CountingException::~CountingException() throw()
14 CountingException::instances--;
17 const libsex::Exception*
18 CountingException::clone() const throw(std::bad_alloc)
20 return new CountingException("CountingException");