mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-26 23:45:49 +03:00
[PR #156] [MERGED] Added method getReason() to SpotifyWebAPIException #268
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#268
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jwilsson/spotify-web-api-php/pull/156
Author: @mengidd
Created: 5/31/2019
Status: ✅ Merged
Merged: 6/19/2019
Merged by: @jwilsson
Base:
master← Head:master📝 Commits (1)
dc05befAdded method getReason() to SpotifyWebAPIException that returns the reason string returned by the player api if a request fails📊 Changes
3 files changed (+43 additions, -1 deletions)
View changed files
📝
src/Request.php(+7 -1)📝
src/SpotifyWebAPIException.php(+27 -0)📝
tests/SpotifyWebAPITest.php(+9 -0)📄 Description
When working with the Player API it's really handy to have the error reason string available.
I've not written much tests in my life, and I'm honestly not sure if this will do. If you want anything changed, just let me know and I will try to have it fixed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.