AssertFunction

AssertFunction to reduce try catch block in each file