| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.GModule.Enums
Contents
Description
Synopsis
- data ModuleError
- catchModuleError :: IO a -> (ModuleError -> GErrorMessage -> IO a) -> IO a
- handleModuleError :: (ModuleError -> GErrorMessage -> IO a) -> IO a -> IO a
Enumerations
ModuleError
data ModuleError Source #
Errors returned by g_module_open_full().
Since: 2.70
Constructors
| ModuleErrorFailed | there was an error loading or opening a module file |
| ModuleErrorCheckFailed | a module returned an error from its |
| AnotherModuleError Int | Catch-all for unknown values |
Instances
catchModuleError :: IO a -> (ModuleError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type ModuleError. This is a specialized version of catchGErrorJustDomain.
handleModuleError :: (ModuleError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type ModuleError. This is a specialized version of handleGErrorJustDomain.