From 2b622e5b17e86f1b3a050fbaee7f16a508566386 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 3 Feb 2016 13:16:48 +0200 Subject: Add custom exception for moving inventory to same location --- servo/exceptions.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.3