It's inevitable that we will all fail in life.
Nothing ever goes perfectly, as much as we wish it would. Even though we all know that things will go wrong, it still hurts when we don't get that job we wanted or get an exam grade you didn't want. Some failures are big and some are small, but they all sting. It's easy to let failures get you down and make you think you have to change your plans; don't feel like this. Embrace the failure and use it as a learning experience when moving forward.
Analyzing a failure after the fact is a good way to learn from your mistakes.
For example, did you not study as much as you could've? Was there an interview question you weren't prepared for? Looking at what went wrong in a failure can help you to fix things in the future; you can learn from what you did wrong, and make sure not to repeat that in the future. Failures are often the learning experiences that lead to success.
Sometimes, a failure just isn't your fault.
The world is unpredictable, and circumstances beyond your control can lead to failure. These failures are usually the worst since you feel as if you had no control over what happened. You may have been blindsided by what happened and wish there was something you could've done, even if there wasn't. Even failures like these must be embraced. Life has a way of working itself out; the failure may have been for the best and may even lead you to another opportunity you didn't expect.
If you experience failure, don't let it stop you from going after what you want.
Things rarely come easy. There is more than one way to achieve your dreams; if one way stops you, why give up? Learn from the experience and move on. Try something new, and don't let one bad incident prevent you from achieving your goal.