Creates custom exception for IoCContainer