Skip to content
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

Set server error code on thrown exception #251

Merged
merged 1 commit into from
Oct 25, 2016
Merged

Set server error code on thrown exception #251

merged 1 commit into from
Oct 25, 2016

Conversation

pinepain
Copy link
Contributor

This PR pass AMQP server error code to thrown exceptions (when applicable) so it is now aavailable asException::getCode().

This PR tends to be BC safe. Exception codes was not in use before so it's safe to start using them now. However, users should first run tests before upgrading just in case they relied on zero exception codes.

@jippi
Copy link

jippi commented Oct 25, 2016

nice! good job

@lstrojny lstrojny merged commit f5ec6ee into php-amqp:master Oct 25, 2016
@lstrojny
Copy link
Collaborator

Looks good!

@prolic
Copy link
Contributor

prolic commented Oct 25, 2016

Thanks a lot!

1.8.0 release please? :-)

@pinepain pinepain deleted the error_codes branch December 16, 2016 06:47
@pinepain pinepain restored the error_codes branch December 16, 2016 06:48
@pinepain pinepain deleted the error_codes branch December 16, 2016 06:48
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.

4 participants