blob: 94beaab8bb9de98189382357d047effb45501b7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
module Store.Exception
( DecodeException (DecodeException),
DuplicateField (DuplicateField),
ParseError (ParseError),
MissingFileName (MissingFileName),
)
where
import Control.Exception (Exception)
import Data.Aeson qualified as J
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
data MissingFileName = MissingFileName J.Value
deriving (Show)
instance Exception MissingFileName
|