PHP5 exception handling mechanism [6] - PHP5 error processing - small knot

xiaoxiao2021-03-06  92

Some discussions, we need a such error handling mechanism:

1. Allow a method to give an error labeled to the customer code 2. Provide a program error Details 3. Let you judge multiple error conditions and separate your error reports and program processing processes. 4. The return value must be an independent type and will not be confused with the type of normal returns.

The exception mechanism of PHP happens to meet the above requirements.

转载请注明原文地址:https://www.9cbs.com/read-121834.html

New Post(0)