summaryrefslogtreecommitdiff
path: root/lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-01-01 17:11:00 +0100
committeremkael <emkael@tlen.pl>2019-01-01 17:11:00 +0100
commit36f25b4e845b9a53dd6f11402de5bfa61078fdf9 (patch)
tree9cf8ee811f2e6c6fb5f90e6001d45d347f969b01 /lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php
parenteab8a101e7a3fcbb41e01a574985e06c5a3775de (diff)
Facebook API updated
Diffstat (limited to 'lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php')
-rw-r--r--lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php b/lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php
index 4a135db..e51f1c8 100644
--- a/lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php
+++ b/lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php
@@ -90,11 +90,20 @@ class FacebookResponseException extends FacebookSDKException
// Video upload resumable error
case 1363030:
case 1363019:
- case 1363037:
case 1363033:
case 1363021:
case 1363041:
return new static($response, new FacebookResumableUploadException($message, $code));
+ case 1363037:
+ $previousException = new FacebookResumableUploadException($message, $code);
+
+ $startOffset = isset($data['error']['error_data']['start_offset']) ? (int) $data['error']['error_data']['start_offset'] : null;
+ $previousException->setStartOffset($startOffset);
+
+ $endOffset = isset($data['error']['error_data']['end_offset']) ? (int) $data['error']['error_data']['end_offset'] : null;
+ $previousException->setEndOffset($endOffset);
+
+ return new static($response, $previousException);
}
}