summaryrefslogtreecommitdiff
path: root/lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-04-26 01:00:12 +0200
committeremkael <emkael@tlen.pl>2018-04-26 01:00:12 +0200
commit4b8a9a5189a625bf99fedec7fd31f6e146410a14 (patch)
treea29759d5f0f0c29f07c89c59f6b5cf38407d1470 /lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php
parentab82beef33f4c196383a81213dcdff4ebe9447ae (diff)
Update FB API library
Diffstat (limited to 'lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php')
-rw-r--r--lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php b/lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php
index c1b19f9..4a135db 100644
--- a/lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php
+++ b/lib/facebook-graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php
@@ -1,6 +1,6 @@
<?php
/**
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
@@ -77,8 +77,6 @@ class FacebookResponseException extends FacebookSDKException
$code = isset($data['error']['code']) ? $data['error']['code'] : null;
$message = isset($data['error']['message']) ? $data['error']['message'] : 'Unknown error from Graph.';
- $previousException = null;
-
if (isset($data['error']['error_subcode'])) {
switch ($data['error']['error_subcode']) {
// Other authentication issues
@@ -89,6 +87,14 @@ class FacebookResponseException extends FacebookSDKException
case 464:
case 467:
return new static($response, new FacebookAuthenticationException($message, $code));
+ // Video upload resumable error
+ case 1363030:
+ case 1363019:
+ case 1363037:
+ case 1363033:
+ case 1363021:
+ case 1363041:
+ return new static($response, new FacebookResumableUploadException($message, $code));
}
}
@@ -107,7 +113,9 @@ class FacebookResponseException extends FacebookSDKException
// API Throttling
case 4:
case 17:
+ case 32:
case 341:
+ case 613:
return new static($response, new FacebookThrottleException($message, $code));
// Duplicate Post