We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/** * @author Xenofon Spafaridis <nohponex@gmail.com> * @since 0.0.0 */ class ResponseException extends \Exception { /** * @var Response */ private $response; /** * @var Errors */ private $errors; /** * @param Errors $errors */ public function __construct(Response $response) { $this->errors = (new Errors($response->getResponse())); $this->response = $response; parent::__construct('Response exception'); } /** * @return Error[] */ public function getErrors() { return $this->errors->getErrors(); } /** * @return Response */ public function getResponse(): Response { return $this->response; } }
The text was updated successfully, but these errors were encountered:
nohponex
No branches or pull requests
The text was updated successfully, but these errors were encountered: