| Copyright | (c) Sebastian Witte |
|---|---|
| License | Apache-2.0 |
| Maintainer | woozletoff@gmail.com |
| Stability | experimental |
| Portability | GHC |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Neovim.Exceptions
Description
Synopsis
- data NeovimException
- exceptionToDoc :: NeovimException -> Doc AnsiStyle
- catchNeovimException :: MonadUnliftIO io => io a -> (NeovimException -> io a) -> io a
Documentation
data NeovimException Source #
Exceptions specific to nvim-hs.
Constructors
| ErrorMessage (Doc AnsiStyle) | Simple error message that is passed to neovim. It should currently only contain one line of text. |
| ErrorResult (Doc AnsiStyle) Object | Error that can be returned by a remote API call. The |
Instances
| IsString NeovimException Source # | |
Defined in Neovim.Exceptions Methods fromString :: String -> NeovimException # | |
| Exception NeovimException Source # | |
Defined in Neovim.Exceptions Methods toException :: NeovimException -> SomeException # | |
| Show NeovimException Source # | |
Defined in Neovim.Exceptions Methods showsPrec :: Int -> NeovimException -> ShowS # show :: NeovimException -> String # showList :: [NeovimException] -> ShowS # | |
catchNeovimException :: MonadUnliftIO io => io a -> (NeovimException -> io a) -> io a Source #
Specialization of catch for NeovimExceptions.