PHP throws an exception after the catch, this is an error, I call the third-party class, the third-party class throws an exception, I am not caught here.
Call another class method that throws an exception that is not captured in the called Class.
How to throw an exception
Catching exceptions
The feeling is not captured
My catch no matter what the output is this error, do not execute my code, I want to throw an exception after processing my code and then execute
Because of me, a foreach. When one of them has an error, the following loop will not be executed.
Reply content:
PHP throws an exception after the catch, this is an error, I call the third-party class, the third-party class throws an exception, I am not caught here.
Call another class method that throws an exception that is not captured in the called Class.
How to throw an exception
Catching exceptions
The feeling is not captured
My catch no matter what the output is this error, do not execute my code, I want to throw an exception after processing my code and then execute
Because of me, a foreach. When one of them has an error, the following loop will not be executed.
Exception
Add a \ Try it in front
$e->getmessage ();
And that's what Scholer said.
Enter the third-party class library break point