Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data Error
- data Reason
- err :: Status -> Error
- e400 :: Error
- e405 :: Error
- e406 :: Error
- e415 :: Error
- e500 :: Error
- status :: Error -> Status
- message :: Error -> Maybe ByteString
- reason :: Error -> Maybe Reason
- source :: Error -> Maybe ByteString
- labels :: Error -> [ByteString]
- setStatus :: Status -> Error -> Error
- setMessage :: ByteString -> Error -> Error
- setReason :: Reason -> Error -> Error
- setSource :: ByteString -> Error -> Error
- addLabel :: ByteString -> Error -> Error
- isReasonOf :: Reason -> Error -> Bool
Documentation
The error type used as meta-data for Fail
in all WAI predicates.
labels :: Error -> [ByteString] Source #
optional free-text labels
setMessage :: ByteString -> Error -> Error Source #