mirror of
https://github.com/ksherlock/profuse.git
synced 2024-12-22 20:29:59 +00:00
02e3c4c532
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@388 aa027e90-d47c-11dd-86d7-074df07e0730
34 lines
547 B
C++
34 lines
547 B
C++
#ifndef __POSIX_EXCEPTION_H__
|
|
#define __POSIX_EXCEPTION_H__
|
|
|
|
#include <Common/Exception.h>
|
|
|
|
namespace POSIX {
|
|
|
|
|
|
class Exception : public ::Exception {
|
|
public:
|
|
Exception(const char *cp, int error);
|
|
Exception(const std::string& string, int error);
|
|
|
|
virtual const char *errorString();
|
|
|
|
private:
|
|
typedef ::Exception super;
|
|
};
|
|
|
|
|
|
inline Exception::Exception(const char *cp, int error) :
|
|
super(cp, error)
|
|
{
|
|
}
|
|
|
|
inline Exception::Exception(const std::string& string, int error) :
|
|
super(string, error)
|
|
{
|
|
}
|
|
|
|
|
|
}
|
|
|
|
#endif |