Closed SimonG96 closed 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
try-catch
ResolveConstructorArguments()
Create a new exception type that derives from AggregateException and lists the constructors that can not be used.
AggregateException
Add an exception that gets thrown when none of the existing constructors match the given or resolvable arguments.
Use the existing
try-catch
inResolveConstructorArguments()
: https://github.com/SimonG96/LightweightIocContainer/blob/981dd219ad84029cf13becc6bc34fe34390d3cc4/LightweightIocContainer/IocContainer.cs#L351-L354Create a new exception type that derives from
AggregateException
and lists the constructors that can not be used.