Skip to content

[7.x] Add message to RequestException - #31720

Merged
taylorotwell merged 2 commits into
laravel:7.xfrom
MrMicky-FR:7.x
Mar 4, 2020
Merged

taylorotwell merged 2 commits into
laravel:7.xfrom
MrMicky-FR:7.x

Conversation

@MrMicky-FR

Copy link
Copy Markdown
Contributor

Just add a message to RequestException with the URI and the response status code to simplify error handling when using throw() because currently the exception message is empty

Comment thread src/Illuminate/Http/Client/RequestException.php Outdated
@taylorotwell taylorotwell reopened this Mar 4, 2020
@taylorotwell
taylorotwell merged commit 7c2c416 into laravel:7.x Mar 4, 2020
salmanarshad321 pushed a commit to salmanarshad321/framework that referenced this pull request Sep 23, 2026
* Add message to RequestException

* Update RequestException.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants