summaryrefslogtreecommitdiff
path: root/src/bad_thing.h
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2024-03-16 11:21:23 -0700
committerJohn Denker <jsd@av8n.com>2024-03-16 11:42:15 -0700
commit9852b855db2a65ea6eb5e877411634820214ddf0 (patch)
treec4c4504b34ef81d67891ed137ec2cfaabb4d6d04 /src/bad_thing.h
parent634d365a03cb0581a062cd3cf4db9ae69f1cde26 (diff)
initial setupHEADmaster
Diffstat (limited to 'src/bad_thing.h')
-rw-r--r--src/bad_thing.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bad_thing.h b/src/bad_thing.h
new file mode 100644
index 0000000..ec13f1c
--- /dev/null
+++ b/src/bad_thing.h
@@ -0,0 +1,12 @@
+#ifndef BAD_THING__H
+#define BAD_THING__H
+class bad_thing: public std::exception{
+ const char* msg;
+ virtual const char* what() const throw() {
+ return msg;
+ }
+public:
+ bad_thing(const char* _msg)
+ : msg(_msg) {}
+};
+#endif