Files are now removed from Dropbox when a photo/album is deleted. Added handling for Dropbox's 429 (retry) error. Added a new admin permission for restricing access to the new services area. Corrected a logic issue with failing images during the analysis process. #106
This commit is contained in:
23
app/Exceptions/DropboxRetryException.php
Normal file
23
app/Exceptions/DropboxRetryException.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
class DropboxRetryException extends \Exception
|
||||
{
|
||||
private $innerException;
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getInnerException()
|
||||
{
|
||||
return $this->innerException;
|
||||
}
|
||||
|
||||
public function __construct($httpCode, \Exception $innerException)
|
||||
{
|
||||
parent::__construct('Dropbox requested to retry the request');
|
||||
|
||||
$this->innerException = $innerException;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user