Why is the Yii 3 DI catching exception?

And how to I turn it off?

I’m throwing an HttpException during building of dependencies, and I’d like that exception to bubble up to my main handler, thank you very much. :slight_smile:

Not a word about exceptions in the readme…

This is the line that eats the exception:

Original exception object is not included in new exception:

Oh but maybe it is, if I use the $previous property.

Problem solved. :slight_smile:

1 Like