auraphp / Aura.Di

Dependency Injection System
MIT License
349 stars 63 forks source link

Clarify the cause of each thrown exception. #105

Closed cxj closed 9 years ago

cxj commented 9 years ago

This also addresses the Radar issue #17, https://github.com/radarphp/Radar.Project/issues/17.

Adds a bit of explanatory text to each thrown exception so that the catching client can display a useful message.

Other possible solutions include:

  1. Add code to each custom derived class of the Exception class to do something intelligent, like add the text I've added, or call a user-supplied function to do something intelligent.
  2. Get rid of the custom derived Exception classes, and just instantiate the general purpose class.