Unity 2.0. How to throw ResolutionFailedException

Posted by Andrey Khataev on Stack Overflow See other posts from Stack Overflow or by Andrey Khataev
Published on 2010-05-21T12:04:50Z Indexed on 2010/05/22 9:50 UTC
Read the original article Hit count: 175

Filed under:

Hello, I have my app, using functionality that is based on unity application block. Sometimes I need to throw ResolutionFailedException manually. In v1.2 constructor of ResolutionFailedException had three parameters - typerequested, namerequested and exception. In v2.0 fourth parameter was added - buildercontext. I'm not creating it manually, so I have no reference to it and no idea where I can get it. Roughly speaking, I'm only overriding Resolve method in particular way and I'm not interfere in standard mechanism of policies, strategies and so on. Could anyone help?

© Stack Overflow or respective owner

Related posts about unity