diff options
author | Filipp Lepalaan <filipp@mac.com> | 2016-02-03 13:16:48 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2016-02-03 13:16:48 +0200 |
commit | 2b622e5b17e86f1b3a050fbaee7f16a508566386 (patch) | |
tree | 7b0a367c879bdc23ae636dc7d632255d28012501 | |
parent | 5091347c3ee9ef1bb92b3bc4b8b802f48326f30a (diff) | |
download | Servo-2b622e5b17e86f1b3a050fbaee7f16a508566386.tar.gz Servo-2b622e5b17e86f1b3a050fbaee7f16a508566386.tar.bz2 Servo-2b622e5b17e86f1b3a050fbaee7f16a508566386.zip |
Add custom exception for moving inventory to same location
-rw-r--r-- | servo/exceptions.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/servo/exceptions.py b/servo/exceptions.py index f4910ba..2673e95 100644 --- a/servo/exceptions.py +++ b/servo/exceptions.py @@ -4,3 +4,8 @@ class ConfigurationError(Exception): def __init__(self, arg): super(ConfigurationError, self).__init__(arg) + + +class InventoryAlreadyAtLocation(Exception): + def __init__(self, arg): + super(InventoryAlreadyAtLocation, self).__init__(arg) |