def float_func(arg):  
exobj = pexdoc.exh.get_or_create_exh_obj()<EOL>exobj.add_exception(<EOL>exname="<STR_LIT>", extype=TypeError, exmsg="<STR_LIT>"<EOL>)<EOL>exobj.add_exception(<EOL>exname="<STR_LIT>", extype=ValueError, exmsg="<STR_LIT>"<EOL>)<EOL>exobj.raise_exception_if("<STR_LIT>", not isinstance(arg, float))<EOL>exobj.raise_exception_if("<STR_LIT>", arg < <NUM_LIT:0>)<EOL>
Internal argument validation.

Have exceptions defined after a chain of function calls