diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-02-12 10:05:02 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-02-12 10:25:37 +0100 |
commit | 68566ca5a376f8508fdd1c5eff3155cde7929850 (patch) | |
tree | 3573f5b5fe392d6b46f08ef259a2be65baf77308 /app/Exception.hs | |
parent | 33faca6f99dc207e81497297c205a1ff29ae2f33 (diff) |
refactor `Query`
Diffstat (limited to 'app/Exception.hs')
-rw-r--r-- | app/Exception.hs | 14 |
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 |