postgrest-0.4.2.0: REST API for any Postgres database

Safe Haskell | None
Language | Haskell2010

PostgREST.Error

Contents

- Orphan instances

# Documentation

apiRequestError :: ApiRequestError -> Response #

pgError :: Bool -> UsageError -> Response #

simpleError :: Status -> Text -> Response #

singularityError :: Integer -> Response #

binaryFieldError :: Response #

connectionLostError :: Response #

encodeError :: ToJSON a => a -> LByteString #

# Orphan instances

ToJSON Error # |
Methods toJSON :: Error -> Value # toEncoding :: Error -> Encoding # toJSONList :: [Error] -> Value # toEncodingList :: [Error] -> Encoding #
ToJSON UsageError # |
Methods toJSON :: UsageError -> Value # toEncoding :: UsageError -> Encoding # toJSONList :: [UsageError] -> Value # toEncodingList :: [UsageError] -> Encoding #
ToJSON ApiRequestError # |
Methods toJSON :: ApiRequestError -> Value # toEncoding :: ApiRequestError -> Encoding # toJSONList :: [ApiRequestError] -> Value # toEncodingList :: [ApiRequestError] -> Encoding #