pradosoft / prado

Prado - Component Framework for PHP
Other
187 stars 70 forks source link

#944 TExitException for graceful exit of application & TException chaining #945

Closed belisoful closed 1 year ago

belisoful commented 1 year ago

In TException, when the final parameter is a Throwable, it becomes the $previous Exception of the exception.

Yay for Exception chaining support.

I saw this in a PHP doc comment and then saw it implemented in Yii. We should have it too.

"back porting?"

This also adds the TUserException designed for display to the end user.