Skip to content

Conversation

@romaninsh
Copy link

As per PHP manual, Exceptions supports specifying error codes through
2nd argument of constructor:
http://www.php.net/manual/en/exception.getcode.php

This patch makes use of standard PHP functionality to transmit error
codes. This adds support for un-handled response types such as 402, 420
and others.

As per PHP manual, Exceptions supports specifying error codes through
2nd argument of constructor:
http://www.php.net/manual/en/exception.getcode.php

This patch makes use of standard PHP functionality to transmit error
codes. This adds support for un-handled response types such as 402, 420
and others.
@zuk
Copy link
Member

zuk commented Oct 9, 2014

Can anyone think of a reason why this shouldn't be merged? I haven't written a line of PHP in about two years so not the best person to make the call on this, but I can imagine it being useful.

@skondakov
Copy link

Seems pretty straightforward to me.

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