Skip to content

Adds specific error codes to certain ParseExceptions #334

New issue

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

Merged
merged 4 commits into from
Jul 12, 2017

Conversation

montymxb
Copy link
Contributor

As mentioned in #180 some time ago, some of the exceptions thrown from this SDK should be setting errors codes as documented in the guide. Not all the exceptions can associate to codes that would make sense, so I have only modified those that are relevant.

If there are any other exceptions that anyone thinks could still use a relevant code go ahead and comment on it. Same for if there are any concerns with some of the exception/code pairings that I've made.

This PR makes no changes to the existing functionality and no new tests were added, just further details for exception handling.

@codecov
Copy link

codecov bot commented Jul 11, 2017

Codecov Report

Merging #334 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #334      +/-   ##
==========================================
+ Coverage   98.78%   98.79%   +<.01%     
==========================================
  Files          35       35              
  Lines        2727     2749      +22     
==========================================
+ Hits         2694     2716      +22     
  Misses         33       33
Impacted Files Coverage Δ
src/Parse/ParseObject.php 97.13% <100%> (ø) ⬆️
src/Parse/ParseACL.php 100% <100%> (ø) ⬆️
src/Parse/ParseRole.php 100% <100%> (ø) ⬆️
src/Parse/ParseClient.php 99.02% <100%> (ø) ⬆️
src/Parse/ParsePush.php 100% <100%> (ø) ⬆️
src/Parse/ParseQuery.php 99.25% <100%> (ø) ⬆️
src/Parse/ParseFile.php 100% <100%> (ø) ⬆️
src/Parse/ParseSchema.php 97.07% <100%> (ø) ⬆️
src/Parse/Internal/ParseRelationOperation.php 96.96% <100%> (+0.04%) ⬆️
src/Parse/ParseUser.php 98.25% <100%> (+0.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 75f1199...6b60166. Read the comment docs.

@montymxb montymxb merged commit 82907cb into parse-community:master Jul 12, 2017
@montymxb montymxb deleted the error-codes branch July 12, 2017 19:12
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.

1 participant