potoki-hasql-1.1: library/Potoki/Error/Types.hs
module Potoki.Error.Types
where
import Potoki.Prelude
{-| Error, which can be produced during interaction with the Requests database.
Comes packed with the detailed description of the problems. -}
data Error =
{-| Connection error. Can be interpreted as a signal for reconnecting. -}
ConnectionError Text |
{-| Some form of an interaction error.
Can happen for many reasons related to improper suppositions about the state of the database. -}
InteractionError Text