summaryrefslogtreecommitdiff
path: root/mask.h
diff options
context:
space:
mode:
Diffstat (limited to 'mask.h')
-rw-r--r--mask.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/mask.h b/mask.h
index 7d38f24f..6d4790a3 100644
--- a/mask.h
+++ b/mask.h
@@ -4,6 +4,8 @@
#include <string>
#include <exception>
+#include "error.h"
+
class mask_t
{
public:
@@ -18,15 +20,10 @@ class mask_t
bool match(const std::string& str) const;
};
-class mask_error : public std::exception {
- std::string reason;
+class mask_error : public error {
public:
- mask_error(const std::string& _reason) throw() : reason(_reason) {}
+ mask_error(const std::string& reason) throw() : error(reason) {}
virtual ~mask_error() throw() {}
-
- virtual const char* what() const throw() {
- return reason.c_str();
- }
};
#endif // _MASK_H