-
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.
Merge pull request #1 from mjiggidy/0.2.0
0.2.0 - Soft Lock
- Loading branch information
Showing
8 changed files
with
401 additions
and
92 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
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
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
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,8 +1,14 @@ | ||
class BinLockLengthError(ValueError): | ||
"""User name is not a valid length (between 1 and MAX_NAME_LENGTH chars)""" | ||
class BinLockNameError(ValueError): | ||
"""The given lock name is not valid for use""" | ||
|
||
class BinLockFileDecodeError(ValueError): | ||
"""File could not be decoded; likely not a valid lock file""" | ||
|
||
class BinLockExistsError(FileExistsError): | ||
"""A lock file already exists for this bin, perhaps from another user""" | ||
"""A lock file already exists for this bin, perhaps from another machine""" | ||
|
||
class BinLockNotFoundError(FileNotFoundError): | ||
"""An expected bin lock is not found""" | ||
|
||
class BinLockOwnershipError(PermissionError): | ||
"""The existing bin lock belongs to another entity (lock names do not match)""" |
Oops, something went wrong.