Safe Haskell | Safe-Inferred |
---|---|
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.
message :: Error -> Maybe ByteString Source
optional status message
source :: Error -> Maybe ByteString Source
optional source of this erro
labels :: Error -> [ByteString] Source
optional free-text labels
setMessage :: ByteString -> Error -> Error Source
setSource :: ByteString -> Error -> Error Source
addLabel :: ByteString -> Error -> Error Source
isReasonOf :: Reason -> Error -> Bool Source