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

Adding ability to get Recurly error code from Recurly_Error Exception #291

Merged
merged 1 commit into from
Jan 6, 2017

Conversation

izhyvaiev
Copy link


private $recurlyCode;

public function __construct($message, $code = 0, Exception $previous = null, $recurlyCode = null)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use the $code parameter? The class is Recurly_Error so it'd seem logical that the code would be a Recurly error code.

Copy link

@drewish drewish Dec 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to answer my own question: Exception's code is typed as an int.

@drewish drewish merged commit a3b7a68 into recurly:master Jan 6, 2017
@bhelx bhelx mentioned this pull request Jan 9, 2017
@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants