concordia-library/concordia/concordia_exception.cpp
2013-10-24 17:08:58 +02:00

20 lines
474 B
C++

#include "concordia_exception.hpp"
ConcordiaException::ConcordiaException() throw():
_message("Concordia exception") {
}
ConcordiaException::ConcordiaException(const string & message) throw():
_message(message) {
}
ConcordiaException::~ConcordiaException() throw() {
}
const char* ConcordiaException::what() const throw() {
char * m = new char[_message.size() + 1];
m[_message.size()]=0;
memcpy(m, _message.c_str(), _message.size());
return m;
}