The concept of “friendly exception” is that one can implement FriendlyExceptionInterface and provide a possible solution to the problem exception represents. Error handler may display it along with usual exception information.
Initially it was part of yii-web package that already has an error handler capable of displaying it but thinking about it for a few days I realized that it’s both useful for console applications and usage outside of Yii.
Thus, I’ve extracted a really small package with an interface only:
What do you think about it?