| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Web.Scim.Schema.Error
Description
SCIM errors
Synopsis
- data ScimErrorType
- data ScimError = ScimError {}
- newtype Status = Status {}
- notFound :: Text -> Text -> ScimError
- badRequest :: ScimErrorType -> Maybe Text -> ScimError
- conflict :: ScimError
- unauthorized :: Text -> ScimError
- forbidden :: Text -> ScimError
- serverError :: Text -> ScimError
- scimToServerError :: ScimError -> ServerError
Types
data ScimErrorType Source #
An ADT for error types in the SCIM specification. Not all possible SCIM
errors have a corresponding ScimErrorType (for instance, authorization
is not covered by this type).
Constructors
| InvalidFilter | |
| TooMany | |
| Uniqueness | |
| Mutability | |
| InvalidSyntax | |
| InvalidPath | |
| NoTarget | |
| InvalidValue | |
| InvalidVers | |
| Sensitive |
Instances
Constructors
| ScimError | |
Instances
Constructors
Arguments
| :: ScimErrorType | Error type |
| -> Maybe Text | Error details |
| -> ScimError |
Servant interoperability
scimToServerError :: ScimError -> ServerError Source #
Convert a SCIM Error to a Servant one by encoding it with the
appropriate headers.