mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-21 16:30:47 +00:00
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
|