mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-31 22:30:03 +00:00
25ad5cf7f5
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@403 aa027e90-d47c-11dd-86d7-074df07e0730
45 lines
590 B
C++
45 lines
590 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() const throw()
|
|
{
|
|
return _string.c_str();
|
|
}
|
|
|
|
const char *Exception::errorString()
|
|
{
|
|
return "";
|
|
}
|