aboutsummaryrefslogtreecommitdiffstats
path: root/app/Exception.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-12 10:05:02 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-12 10:25:37 +0100
commit68566ca5a376f8508fdd1c5eff3155cde7929850 (patch)
tree3573f5b5fe392d6b46f08ef259a2be65baf77308 /app/Exception.hs
parent33faca6f99dc207e81497297c205a1ff29ae2f33 (diff)
refactor `Query`
Diffstat (limited to 'app/Exception.hs')
-rw-r--r--app/Exception.hs14
1 files changed, 13 insertions, 1 deletions
diff --git a/app/Exception.hs b/app/Exception.hs
index d67a8bc..0cccf5b 100644
--- a/app/Exception.hs
+++ b/app/Exception.hs
@@ -1,11 +1,23 @@
module Exception
- ( DuplicateField (DuplicateField),
+ ( 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