Both pass and fail are the parts of life. You shouldn't blame anyone else for your failure, not even to your ownself. Cause whatever happens, it happens for a good reason. So, you should learn to accept every challenges of life with a smile. Challenges will make you stronger. If you pass, you'll know what your potentials are and if you fail, then try to understand that you aren't giving your best and you've to work hard a little more and be positive-minded. And who knows, from whatever circumstances you're going through.... is leading you to what you've asked for.
Blaming, is an immoral act. Never give up, get up and cheer up. Life is beautiful!