common: add a base exception class (#38405)

This commit is contained in:
Benjamin Dauvergne 2020-01-03 18:14:55 +01:00
parent 5cca8ce560
commit 8ae9b712c4
1 changed files with 5 additions and 1 deletions

View File

@ -63,7 +63,11 @@ def force_byte(s, encoding='utf-8'):
return s.encode()
class ResponseError(Exception):
class PaymentException(Exception):
pass
class ResponseError(PaymentException):
pass