Did I find the right examples for you? yes no

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)
Authorize.net ARB base exception class.

src/p/a/PayPy-0.6/paypy/adapters/authnet/arb.py   PayPy(Download)
 
from paypy.adapters                import *
from paypy.exceptions.authnet      import ARBException
from paypy.schemas.authnet.arb     import IAuthnetSubscriptionCreate, IAuthnetSubscriptionUpdate, IAuthnetSubscriptionStatus, IAuthnetSubscriptionCancel
from paypy.serializers.authnet.arb import Serialize
 
        if not IArb.providedBy(options):
            raise ARBException('the options object must provide a valid schema interface')
 
        self.options    = options
    def create(self):
        """Create a new subscription."""
 
        if not IAuthnetSubscriptionCreate.providedBy(self.options.subscription):
            raise ARBException('a creation request must conform to the IAuthnetSubscriptionCreate interface')
    def update(self):
        """Update a given subscription."""
 
        if not IAuthnetSubscriptionUpdate.providedBy(self.options.subscription):
            raise ARBException('an update request must conform to the IAuthnetSubscriptionUpdate interface')
    def status(self):
        """Retrieve the subscription's status."""
 
        if not IAuthnetSubscriptionStatus.providedBy(self.options.subscription):
            raise ARBException('a status request must conform to the IAuthnetSubscriptionStatus interface')