Say you're contemplating a problem, trying to figure out a solution or a process to solve the problem. You think of a certain aspect of it or problem that could occur, and you design something to compensate for this forseen issue. You go through with your design (the process to solve the problem), accounting for this problem but it fails anyway.
This is the definition of "Murphy's Law". If something can go wrong, it will.