Sir I was trying to catch exception and manually return the exception instead of raising.
Even raising exception works.
I will revert back to raise. 
I had made those changes for testing purpose and was working fine so kept.