Source code for shoop.core.excs
# -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from shoop.utils.excs import Problem
[docs]class ImmutabilityError(ValueError):
pass
[docs]class NoProductsToShipException(Exception):
pass
[docs]class NoPaymentToCreateException(Exception):
pass
[docs]class NoRefundToCreateException(Exception):
pass
[docs]class RefundExceedsAmountException(Exception):
pass
[docs]class ProductNotOrderableProblem(Problem):
pass
[docs]class ProductNotVisibleProblem(Problem):
pass
[docs]class ImpossibleProductModeException(ValueError):
def __init__(self, message, code=None):
super(ImpossibleProductModeException, self).__init__(message)
self.code = code