Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4c9321a07a
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (17 sloc) 0.378 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# coding=utf-8
"""
Various PayPal API related exceptions.
"""

class Error(Exception):
    """
Parent Error class. Nothing error-specific here.
"""
    def __init__(self, message):
        self.message = message
    def __str__(self):
        return repr(self.message)


class ApiError(Error):
    """
Used to denote some kind of generic API error.
"""
    pass
Something went wrong with that request. Please try again.