pronamic / wp-pronamic-pay

The Pronamic Pay plugin allows you to easily accept payments with payment methods like credit card, iDEAL, Bancontact and Sofort through a variety of payment providers on your WordPress website.
https://pronamicpay.com
34 stars 14 forks source link

Remove methods for error handling with `WP_Error` object #303

Closed rvdsteege closed 2 years ago

rvdsteege commented 2 years ago

In the core gateway, we have methods get_error(), set_error() and has_error() which use a WP_Error object for error handling:

Most of our error handling has been updated to use exceptions instead. The set_error() method is still in use in some gateway get_issuers() and get_available_payment_methods(), would be nice to use exceptions also for these cases.

remcotolsma commented 2 years ago

Removed in https://github.com/pronamic/wp-pay-core/compare/a28fe2a058e447a33939b5333dafe570cb331560...930353dd222b09eda003741f2eeb33006133f699.