ICU error type. This is an instance of the Exception type class. A value of this type may be thrown as an exception by most ICU functions.
Moduletext-icu-0.8.0.5Haskell98
Data.Text.ICU.Error
Errors thrown by bindings to the International Components for Unicode (ICU) libraries.
Most ICU functions can throw an ICUError value as an exception. Some can additionally throw a ParseError, if more detailed error information is necessary.
- 2 types
- 129 values
- Packagetext-icu-0.8.0.5
- Exports131
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceError.hsc
Types
5 declarationsDetailed information about parsing errors. Used by ICU parsing engines that parse long rules, patterns, or programs, where the text being parsed is long enough that more information than an ICUError is needed to localize the error.
Instances3Show, Exception, NFData
Show ParseErrorDefined in text-icu-0.8.0.5 · Data.Text.ICU.Error.InternalException ParseErrorDefined in text-icu-0.8.0.5 · Data.Text.ICU.Error.InternalNFData ParseErrorDefined in text-icu-0.8.0.5 · Data.Text.ICU.Error.Internal
The line on which the error occured. If the parser uses this field, it sets it to the line number of the source text line on which the error appears, which will be be a positive value. If the parser does not support line numbers, the value will be Nothing.
The character offset to the error. If the errLine field is Just some value, then this field contains the offset from the beginning of the line that contains the error. Otherwise, it represents the offset from the start of the text. If the parser does not support this field, it will have a value of Nothing.
Functions
4 declarationsIndicate whether the given error code is a success.
Indicate whether the given error code is a failure.
Return a string representing the name of the given error code.