Closed Timandes closed 9 years ago
The best way to do this, is implement exceptions.
@fabiorphp Could we handle this just like mysqli_driver::$report_mode?
I really dislike mysqli_driver::$report_mode. There should be just one way to gather error information.
Seriously, I don't like report mode. In my humble opinion, we should think about exceptions. The correct use of exceptions, I believe that will be the best choice.
All right, then. If you guys both like exceptions, should we start merging pull request #28? Or you have other plans?
Maybe, but for do that, we should check the entire PR commits and create tests for it, maybe use this PR for think in an ideia to make this possible
@andreiz Could you create a new branch in order to complete feature about exceptions?
@Timandes done
@andreiz :heart_eyes:
:smile: Please close this issue!
When something was going wrong, it returns false.
We could get error code & message from getResultCode() & getResultMessage() just like php_memcached.