Confidence shaken

How do you keep your confidence and focus when someone tells you that you can't pass?