AXA Interview Question

Explain dependency Injection. How would you anticipate and handle failed transactions in a finance system?