forked from jiaaro/pydub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Evandro Myller
authored and
Evandro Myller
committed
Jan 11, 2018
1 parent
120c579
commit e19a2f8
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
class PydubException(Exception): | ||
""" | ||
Base class for any Pydub exception | ||
""" | ||
|
||
|
||
class TooManyMissingFrames(Exception): | ||
class TooManyMissingFrames(PydubException): | ||
pass | ||
|
||
|
||
class InvalidDuration(Exception): | ||
class InvalidDuration(PydubException): | ||
pass | ||
|
||
|
||
class InvalidTag(Exception): | ||
class InvalidTag(PydubException): | ||
pass | ||
|
||
|
||
class InvalidID3TagVersion(Exception): | ||
class InvalidID3TagVersion(PydubException): | ||
pass | ||
|
||
|
||
class CouldntDecodeError(Exception): | ||
class CouldntDecodeError(PydubException): | ||
pass | ||
class CouldntEncodeError(Exception): | ||
|
||
class CouldntEncodeError(PydubException): | ||
pass | ||
|
||
class MissingAudioParameter(Exception): | ||
pass | ||
class MissingAudioParameter(PydubException): | ||
pass |