mirror of
https://github.com/ksherlock/profuse.git
synced 2025-02-13 14:32:01 +00:00
02e3c4c532
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@388 aa027e90-d47c-11dd-86d7-074df07e0730
45 lines
576 B
C++
45 lines
576 B
C++
|
|
#include "Exception.h"
|
|
#include <cstdio>
|
|
#include <cstring>
|
|
|
|
|
|
Exception::Exception(const char *cp):
|
|
_error(0),
|
|
_string(cp)
|
|
{
|
|
}
|
|
|
|
Exception::Exception(const std::string& string):
|
|
_error(0),
|
|
_string(string)
|
|
{
|
|
}
|
|
|
|
Exception::Exception(const char *cp, int error):
|
|
_error(error),
|
|
_string(cp)
|
|
{
|
|
}
|
|
|
|
Exception::Exception(const std::string& string, int error):
|
|
_error(error),
|
|
_string(string)
|
|
{
|
|
}
|
|
|
|
|
|
Exception::~Exception() throw()
|
|
{
|
|
}
|
|
|
|
const char *Exception::what()
|
|
{
|
|
return _string.c_str();
|
|
}
|
|
|
|
const char *Exception::errorString()
|
|
{
|
|
return "";
|
|
}
|