Package cjklib :: Module exception
[hide private]
[frames] | no frames]

Source Code for Module cjklib.exception

 1  #!/usr/bin/python 
 2  # -*- coding: utf8 -*- 
 3   
 4  """ 
 5  Provides the error classes raised by the functions of the cjklib module. 
 6   
 7  @group Exceptions: *Error 
 8  """ 
 9   
10 -class ConversionError(Exception):
11 """ 12 A ConversionError is raised on a general conversion exception (e.g. no 13 mapping). 14 """
15
16 -class AmbiguousConversionError(ConversionError):
17 """ 18 An AmbiguousConversionError is raised when a conversion of one entity from 19 one reading to another is ambiguous. 20 """
21
22 -class DecompositionError(Exception):
23 """ 24 A DecompositionError is raised on a general decomposition exception (e.g. 25 reading string has a bad format). 26 """
27
28 -class AmbiguousDecompositonError(DecompositionError):
29 """ 30 An AmbiguousDecompositonError is raised when decomposition of a string 31 written in a reading is ambiguous. 32 """
33
34 -class InvalidEntityError(DecompositionError):
35 """ 36 An InvalidEntityError is raised when a reading entity given (e.g. through 37 decomposition) is invalid for the current reading. 38 """
39
40 -class NoInformationError(Exception):
41 """ 42 A NoInformationError is raised when the database lacks information for the 43 given lookup value. 44 """
45
46 -class UnsupportedError(Exception):
47 """ 48 An UnsupportedError is raised when the given option is not supported. 49 """
50