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.