| Copyright | Copyright (C) 2006-2022 John MacFarlane | 
|---|---|
| License | GNU GPL, version 2 or above | 
| Maintainer | John MacFarlane <jgm@berkeley.edu> | 
| Stability | alpha | 
| Portability | portable | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Text.Pandoc.Error
Description
This module provides a standard way to deal with possible errors encountered during parsing.
Synopsis
- data PandocError
- = PandocIOError Text IOError
 - | PandocHttpError Text HttpException
 - | PandocShouldNeverHappenError Text
 - | PandocSomeError Text
 - | PandocParseError Text
 - | PandocParsecError Sources ParseError
 - | PandocMakePDFError Text
 - | PandocOptionError Text
 - | PandocSyntaxMapError Text
 - | PandocFailOnWarningError
 - | PandocPDFProgramNotFoundError Text
 - | PandocPDFError Text
 - | PandocXMLError Text Text
 - | PandocFilterError Text Text
 - | PandocLuaError Text
 - | PandocCouldNotFindDataFileError Text
 - | PandocCouldNotFindMetadataFileError Text
 - | PandocResourceNotFound Text
 - | PandocTemplateError Text
 - | PandocAppError Text
 - | PandocEpubSubdirectoryError Text
 - | PandocMacroLoop Text
 - | PandocUTF8DecodingError Text Int Word8
 - | PandocIpynbDecodingError Text
 - | PandocUnsupportedCharsetError Text
 - | PandocUnknownReaderError Text
 - | PandocUnknownWriterError Text
 - | PandocUnsupportedExtensionError Text Text
 - | PandocCiteprocError CiteprocError
 - | PandocBibliographyError Text Text
 
 - renderError :: PandocError -> Text
 - handleError :: Either PandocError a -> IO a
 
Documentation
data PandocError Source #
Constructors
Instances
renderError :: PandocError -> Text Source #
handleError :: Either PandocError a -> IO a Source #
Handle PandocError by exiting with an error message.