Sindbad~EG File Manager

Current Path : /home/copmadinaarea/drive.copmadinaarea.org/vendor/spatie/dropbox-api/src/Exceptions/
Upload File :
Current File : /home/copmadinaarea/drive.copmadinaarea.org/vendor/spatie/dropbox-api/src/Exceptions/BadRequest.php

<?php

namespace Spatie\Dropbox\Exceptions;

use Exception;
use Psr\Http\Message\ResponseInterface;

class BadRequest extends Exception
{
    /**
     * The dropbox error code supplied in the response.
     *
     * @var string|null
     */
    public $dropboxCode;

    public function __construct(ResponseInterface $response)
    {
        $body = json_decode($response->getBody(), true);

        if (isset($body['error']['.tag'])) {
            $this->dropboxCode = $body['error']['.tag'];
        }

        parent::__construct($body['error_summary']);
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists