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