* Default constructor for ExceptionChainingObjectFactory
* Constructor for ExceptionChainingObjectFactory * * Params: * decorated = factory to be decorated * id = identity of created object, used for exception message.
Factory an object, and catch any exception wrapping it in a library exception to be rethrown further.
* Set id * * Params: * id = identity of created object, used for exception message. * Returns: * typeof(this)
* Get id * * Returns: * string
* Set locator * * Params: * locator = the locator used to locate dependencies for created object. * Returns: * typeof(this)
* Get type of created object * * Returns: * TypeInfo
A decorating factory that catches any thrown exceptions by decorated factory, and rethrows them with additional information.
A decorating factory that catches any thrown exceptions by decorated factory, and chains it in a new exception that adds additonal debugging information such as registered identity, and cause of exception. It is useful for chaining component instantiation pipeline and printing it for debugging purposes.