aboutsummaryrefslogtreecommitdiffstats
path: root/src/Store/Exception.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-13 02:07:20 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-13 02:10:56 +0100
commit950eea3ba04e94cf3d5797f9b5d32b2621c89b55 (patch)
tree2e6aee5b7f571ca8022181689d5650a8c1b82f03 /src/Store/Exception.hs
parentb110c5904d4b252d0adbb7fbfabd3270a7844fd3 (diff)
refactor library
Diffstat (limited to 'src/Store/Exception.hs')
-rw-r--r--src/Store/Exception.hs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Store/Exception.hs b/src/Store/Exception.hs
new file mode 100644
index 0000000..245780c
--- /dev/null
+++ b/src/Store/Exception.hs
@@ -0,0 +1,23 @@
+module Store.Exception
+ ( DecodeException (DecodeException),
+ DuplicateField (DuplicateField),
+ ParseError (ParseError),
+ )
+where
+
+import Control.Exception (Exception)
+
+data DecodeException = DecodeException
+ deriving (Show)
+
+instance Exception DecodeException
+
+data DuplicateField = DuplicateField String
+ deriving (Show)
+
+instance Exception DuplicateField
+
+data ParseError = ParseError String
+ deriving (Show)
+
+instance Exception ParseError