| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.JsonRpc.Failure
Documentation
Instances
Instances
data ErrorStatus Source #
Constructors
| ParseError | |
| InvalidRequest | |
| MethodNotFound | |
| InvalidParams | |
| InternalError | |
| ServerError !Integer | |
| MethodError !Integer |
Instances
| Eq ErrorStatus Source # | |
Defined in Data.JsonRpc.Failure | |
| Show ErrorStatus Source # | |
Defined in Data.JsonRpc.Failure Methods showsPrec :: Int -> ErrorStatus -> ShowS # show :: ErrorStatus -> String # showList :: [ErrorStatus] -> ShowS # | |
| ToJSON ErrorStatus Source # | |
Defined in Data.JsonRpc.Instances Methods toJSON :: ErrorStatus -> Value # toEncoding :: ErrorStatus -> Encoding # toJSONList :: [ErrorStatus] -> Value # toEncodingList :: [ErrorStatus] -> Encoding # | |
| FromJSON ErrorStatus Source # | |
Defined in Data.JsonRpc.Instances | |
toCode :: ErrorStatus -> Integer Source #
refineStatus :: MonadPlus m => ErrorStatus -> m ErrorStatus Source #
serverError :: (Integral a, MonadPlus m) => a -> m ErrorStatus Source #
methodError :: (Integral a, MonadPlus m) => a -> m ErrorStatus Source #
emptyError :: Maybe () Source #