From 095f3c203de7331f35b43b2de71b3a5d2cedd046 Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 28 Sep 2016 11:03:32 +0200 Subject: [PATCH] Add Asset exceptions --- exceptions.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/exceptions.py b/exceptions.py index 8e4d8eca..2e1dc670 100644 --- a/exceptions.py +++ b/exceptions.py @@ -72,3 +72,11 @@ class CyclicBlockchainError(Exception): class FulfillmentNotInValidBlock(Exception): """Raised when a transaction depends on an invalid or undecided fulfillment""" + + +class AssetIdMismatch(Exception): + """Raised when multiple transaction inputs related to different assets""" + + +class AmountError(Exception): + """Raised when the amount of a non-divisible asset is different then 1"""