Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
errorResponseFor :: PgrstError a => a -> Response Source #
data ApiRequestError Source #
Instances
Eq ApiRequestError Source # | |
Defined in PostgREST.Error (==) :: ApiRequestError -> ApiRequestError -> Bool # (/=) :: ApiRequestError -> ApiRequestError -> Bool # | |
Show ApiRequestError Source # | |
Defined in PostgREST.Error showsPrec :: Int -> ApiRequestError -> ShowS # show :: ApiRequestError -> String # showList :: [ApiRequestError] -> ShowS # | |
ToJSON ApiRequestError Source # | |
Defined in PostgREST.Error toJSON :: ApiRequestError -> Value # toEncoding :: ApiRequestError -> Encoding # toJSONList :: [ApiRequestError] -> Value # toEncodingList :: [ApiRequestError] -> Encoding # |
PgError Authenticated UsageError |
data SimpleError Source #
Instances
Eq SimpleError Source # | |
Defined in PostgREST.Error (==) :: SimpleError -> SimpleError -> Bool # (/=) :: SimpleError -> SimpleError -> Bool # | |
Show SimpleError Source # | |
Defined in PostgREST.Error showsPrec :: Int -> SimpleError -> ShowS # show :: SimpleError -> String # showList :: [SimpleError] -> ShowS # | |
ToJSON SimpleError Source # | |
Defined in PostgREST.Error toJSON :: SimpleError -> Value # toEncoding :: SimpleError -> Encoding # toJSONList :: [SimpleError] -> Value # toEncodingList :: [SimpleError] -> Encoding # |
errorPayload :: PgrstError a => a -> LByteString Source #
singularityError :: Integral a => a -> SimpleError Source #
Orphan instances
ToJSON QueryError Source # | |
toJSON :: QueryError -> Value # toEncoding :: QueryError -> Encoding # toJSONList :: [QueryError] -> Value # toEncodingList :: [QueryError] -> Encoding # | |
ToJSON CommandError Source # | |
toJSON :: CommandError -> Value # toEncoding :: CommandError -> Encoding # toJSONList :: [CommandError] -> Value # toEncodingList :: [CommandError] -> Encoding # | |
ToJSON UsageError Source # | |
toJSON :: UsageError -> Value # toEncoding :: UsageError -> Encoding # toJSONList :: [UsageError] -> Value # toEncodingList :: [UsageError] -> Encoding # |