We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ac5bd8 commit 3839bb6Copy full SHA for 3839bb6
1 file changed
lib/apicontrollersbase.js
@@ -15,6 +15,7 @@ class APIOperationBase {
15
16
this._request = null;
17
this._response = null;
18
+ this._error = null;
19
this._endpoint = constants.endpoint.sandbox;
20
21
if (null == apiRequest)
@@ -38,6 +39,10 @@ class APIOperationBase {
38
39
return this._response;
40
}
41
42
+ getError() {
43
+ return this._error;
44
+ }
45
+
46
getResultcode() {
47
var resultcode = null;
48
@@ -107,6 +112,7 @@ class APIOperationBase {
107
112
logger.error("Undefined Response");
108
113
109
114
}).catch(error => {
115
+ obj._error = error;
110
116
logger.error(error);
111
117
});
118
0 commit comments