From 950eea3ba04e94cf3d5797f9b5d32b2621c89b55 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Tue, 13 Feb 2024 02:07:20 +0100 Subject: refactor library --- src/Store/Exception.hs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/Store/Exception.hs (limited to 'src/Store/Exception.hs') 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 -- cgit v1.2.3