Exceptions¶
-
class
babelfish.exceptions.Error¶ Base class for all exceptions in babelfish
-
class
babelfish.exceptions.LanguageConvertError(alpha3, country=None, script=None)¶ Exception raised by converters when
convert()failsParameters: - alpha3 (string) – alpha3 code that failed conversion
- country (string or None) – country code that failed conversion, if any
- script (string or None) – script code that failed conversion, if any
-
class
babelfish.exceptions.LanguageReverseError(code)¶ Exception raised by converters when
reverse()failsParameters: code (string) – code that failed reverse conversion