SimonG96 / LightweightIocContainer

A lightweight IOC Container that is powerful enough to do all the things you need it to do.
MIT License
4 stars 2 forks source link

Add exception when no matching constructor is found #26

Closed SimonG96 closed 5 years ago

SimonG96 commented 5 years ago

Add an exception that gets thrown when none of the existing constructors match the given or resolvable arguments.

Use the existing try-catch in ResolveConstructorArguments(): https://github.com/SimonG96/LightweightIocContainer/blob/981dd219ad84029cf13becc6bc34fe34390d3cc4/LightweightIocContainer/IocContainer.cs#L351-L354

Create a new exception type that derives from AggregateException and lists the constructors that can not be used.