2013-10-24 17:08:58 +02:00
|
|
|
#include "concordia_exception.hpp"
|
|
|
|
|
|
|
|
ConcordiaException::ConcordiaException() throw():
|
|
|
|
_message("Concordia exception") {
|
|
|
|
}
|
|
|
|
|
2015-04-15 14:14:10 +02:00
|
|
|
ConcordiaException::ConcordiaException(const std::string & message) throw():
|
2013-10-24 17:08:58 +02:00
|
|
|
_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;
|
|
|
|
}
|