text-icu-0.8.0.3: Bindings to the ICU library
Copyright(c) 2010 Bryan O'Sullivan
LicenseBSD-style
Maintainerbos@serpentine.com
Stabilityexperimental
PortabilityGHC
Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Text.ICU.Error

Description

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.

Synopsis

Types

data ICUError Source #

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.

Instances

Instances details
Exception ICUError Source # 
Instance details

Defined in Data.Text.ICU.Error.Internal

Show ICUError Source # 
Instance details

Defined in Data.Text.ICU.Error.Internal

NFData ICUError Source # 
Instance details

Defined in Data.Text.ICU.Error.Internal

Methods

rnf :: ICUError -> () #

Eq ICUError Source # 
Instance details

Defined in Data.Text.ICU.Error.Internal

data ParseError Source #

Detailed 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.

Functions

isSuccess :: ICUError -> Bool Source #

Indicate whether the given error code is a success.

isFailure :: ICUError -> Bool Source #

Indicate whether the given error code is a failure.

errorName :: ICUError -> String Source #

Return a string representing the name of the given error code.

Warnings

Errors

Transliterator errors

Formatting API parsing errors

Break iterator errors

Regular expression errors

IDNA errors