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