Javascript-php cannot be caught after an exception is thrown

Source: Internet
Author: User
Php throws an exception and cannot be caught. this is an error. the third-party class that I call and the third-party class throw an exception. I cannot catch it here. This class throws an exception and cannot be captured in the called class. When an exception is thrown, the system cannot catch me...

Php throws an exception and cannot be caught. this is an error. the third-party class that I call and the third-party class throw an exception. I cannot catch it here.
This class throws an exception and cannot be captured in the called class.

How to throw an exception

Capture exceptions

It seems that it cannot be captured.

No matter what is output in my catch, this error cannot be executed. I want to throw an exception and process it and then execute it.
Because I am a foreach. when one of them has an error, the following loop will not be executed.

Reply content:

Php throws an exception and cannot be caught. this is an error. the third-party class that I call and the third-party class throw an exception. I cannot catch it here.
This class throws an exception and cannot be captured in the called class.

How to throw an exception

Capture exceptions

It seems that it cannot be captured.

No matter what is output in my catch, this error cannot be executed. I want to throw an exception and process it and then execute it.
Because I am a foreach. when one of them has an error, the following loop will not be executed.

ExceptionAdd a \ above to try

$ E-> getMessage ();

What scholer said

Open a third-party class library to open a breakpoint

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.