Skip to content

Commit c2d288a

Browse files
author
Kevin Hellemun
committed
Added response id parameter to exception base class. (#59)
1 parent e63aeb2 commit c2d288a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bunq/sdk/exception.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
class ApiException(Exception):
2-
def __init__(self, message, response_code):
2+
def __init__(self, message, response_code, response_id):
33
"""
4+
:type response_id: str
45
:type message: str
56
:type response_code: int
67
"""
78

9+
self._response_id = response_id
810
self._message = message
911
self._response_code = response_code
1012

@@ -26,6 +28,10 @@ def response_code(self):
2628

2729
return self._response_code
2830

31+
@property
32+
def response_id(self):
33+
return self._response_id
34+
2935

3036
class BunqException(Exception):
3137
def __init__(self, message):

0 commit comments

Comments
 (0)