Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Polysemy.Account.Data.AccountsError
Description
Synopsis
Documentation
data AccountsClientError Source #
Errors that indicate invalid client-supplied information.
Constructors
NoAccountId | No account was found for the given ID. |
InvalidAuth | Credentials did not match stored auth data. |
NoAccountName | No account was found for the given name. |
Conflict | Name given for registration already exists in storage. |
Instances
FromJSON AccountsClientError Source # | |
Defined in Polysemy.Account.Data.AccountsError Methods parseJSON :: Value -> Parser AccountsClientError # parseJSONList :: Value -> Parser [AccountsClientError] # | |
ToJSON AccountsClientError Source # | |
Defined in Polysemy.Account.Data.AccountsError Methods toJSON :: AccountsClientError -> Value # toEncoding :: AccountsClientError -> Encoding # toJSONList :: [AccountsClientError] -> Value # toEncodingList :: [AccountsClientError] -> Encoding # | |
Show AccountsClientError Source # | |
Defined in Polysemy.Account.Data.AccountsError Methods showsPrec :: Int -> AccountsClientError -> ShowS # show :: AccountsClientError -> String # showList :: [AccountsClientError] -> ShowS # | |
Eq AccountsClientError Source # | |
Defined in Polysemy.Account.Data.AccountsError Methods (==) :: AccountsClientError -> AccountsClientError -> Bool # (/=) :: AccountsClientError -> AccountsClientError -> Bool # |
data AccountsError Source #
Errors produced by the effect Accounts
.
Constructors
Client AccountsClientError | Errors that indicate invalid client-supplied information. |
Internal Text | Error indicating storage backend failure. |
Instances
Show AccountsError Source # | |
Defined in Polysemy.Account.Data.AccountsError Methods showsPrec :: Int -> AccountsError -> ShowS # show :: AccountsError -> String # showList :: [AccountsError] -> ShowS # | |
Eq AccountsError Source # | |
Defined in Polysemy.Account.Data.AccountsError Methods (==) :: AccountsError -> AccountsError -> Bool # (/=) :: AccountsError -> AccountsError -> Bool # |