The temptation is to turn your back on life with hatred or poor self esteem. But this is the path to greater pain. First, acknowledge that rejection and failure are a part of everyday life. Rejection is not a sign that there is something wrong with you. We are tempted in times of failure or rejection to blame ourselves too much.
Every life encounters rejection and pain.
This is not a sign of a life lived poorly. It is simply part of life itself. Just like the game of golf is played with its sand traps and water hazards, so our lives are played out with difficulties and dangers. The question is not whether we will come across these hazards but what will be our attitude. In a sense, life is like a game of cards.