Lines Matching defs:Error
76 getmark(id) -- get mark with the specified id (raises an error
140 __all__ = ["Error","open","openfp"]
142 class Error(Exception):
150 except struct.error:
156 except struct.error:
162 except struct.error:
168 except struct.error:
300 raise Error, 'file does not start with FORM id'
307 raise Error, 'not an AIFF or AIFF-C file'
329 raise Error, 'COMM chunk and/or SSND chunk missing'
340 raise Error, 'cannot compress more than 2 channels'
403 raise Error, 'marker %r does not exist' % (id,)
407 raise Error, 'position not in range'
497 Error, 'cannot read compressed AIFF-C files'
505 raise Error, 'unsupported compression type'
603 raise Error, 'cannot change parameters after starting to write'
608 raise Error, 'cannot change parameters after starting to write'
613 raise Error, 'cannot change parameters after starting to write'
615 raise Error, 'bad # of channels'
620 raise Error, 'number of channels not set'
625 raise Error, 'cannot change parameters after starting to write'
627 raise Error, 'bad sample width'
632 raise Error, 'sample width not set'
637 raise Error, 'cannot change parameters after starting to write'
639 raise Error, 'bad frame rate'
644 raise Error, 'frame rate not set'
649 raise Error, 'cannot change parameters after starting to write'
657 raise Error, 'cannot change parameters after starting to write'
659 raise Error, 'unsupported compression type'
671 ## raise Error, 'cannot change parameters after starting to write'
677 raise Error, 'cannot change parameters after starting to write'
679 raise Error, 'unsupported compression type'
688 raise Error, 'not all parameters set'
694 raise Error, 'marker ID must be > 0'
696 raise Error, 'marker position must be >= 0'
698 raise Error, 'marker name must be a string'
709 raise Error, 'marker %r does not exist' % (id,)
786 raise Error, 'sample width must be 2 when compressing with ULAW or ALAW'
791 raise Error, 'sample width must be 2 when compressing with G7.22 (ADPCM)'
793 raise Error, '# channels not specified'
795 raise Error, 'sample width not specified'
797 raise Error, 'sampling rate not specified'
814 raise Error, 'cannot write compressed AIFF-C files'
820 raise Error, 'unsupported compression type'
832 raise Error, 'cannot compress more than 2 channels'
946 raise Error, "mode must be 'r', 'rb', 'w', or 'wb'"