Package gmisclib :: Module xwaves_errs
[frames] | no frames]

Source Code for Module gmisclib.xwaves_errs

 1  """Errors for reading label (typically speech transcription) files. 
 2  """ 
 3   
4 -class Error(Exception):
5 - def __init__(self, *x):
6 Exception.__init__(self, *x)
7
8 -class NoSuchFileError(IOError, Error):
9 - def __init__(self, *x):
10 IOError.__init__(self, *x) 11 Error.__init__(self, *x)
12
13 -class BadFileFormatError(Error):
14 - def __init__(self, *x):
15 Error.__init__(self, *x)
16
17 -class DataError(Error):
18 - def __init__(self, *x):
19 Error.__init__(self, *x)
20 21 # class DataOutOfOrderError(DataError): 22 # def __init__(self, *s): 23 # Error.__init__(self, *s) 24
25 -class DataOutOfOrderError(DataError):
26 - def __init__(self, *s):
27 DataError.__init__(self, *s)
28