Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (15 sloc) 468 Bytes
#pragma once
#include <exception>
#include <string>
class yadfs_exception: public std::exception {
public:
yadfs_exception(const::std::string& msg): mMessage(msg) { }
yadfs_exception(const yadfs_exception& o): mMessage(o.mMessage) { }
yadfs_exception& operator=(const yadfs_exception& o) { mMessage = o.mMessage; return *this; }
~yadfs_exception() throw() { }
const char* what() const throw() {
return mMessage.c_str();
}
protected:
std::string mMessage;
};