Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
errorResponseFor :: PgrstError a => a -> Response Source #
data ApiRequestError Source #
Instances
ToJSON ApiRequestError Source # | |
Defined in PostgREST.Error toJSON :: ApiRequestError -> Value # toEncoding :: ApiRequestError -> Encoding # toJSONList :: [ApiRequestError] -> Value # toEncodingList :: [ApiRequestError] -> Encoding # |
PgError Authenticated UsageError |
errorPayload :: PgrstError a => a -> LByteString Source #
singularityError :: Integral a => a -> Error 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 # |