The overly simplistic picture for learning from ones mistakes is something I like to call "the hot stove."
You touch a hot stove, burn yourself, and lear don't do THAT again.
But what is the THAT?
In this case, is it to avoid touching hot-stoves, to avoid the kitchen completely, to avoid touching things that will burn you?
The above was mostly rhethorical. The basic idea is that when something goes wrong, people attribute the problem to different reasons. How do you go about deciding what the reasons for problems are? How much time do you spend on discernment?