def raiseExceptionWithMessage(msg, i):
	raise Exception('%s \n(called from %s() in file %s line %s)'%(msg, inspect.stack()[i+1][3], inspect.stack()[i+1][1], inspect.stack()[i+1][2]))
Raise an exception with a custom message and information about where the call originated.
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/amTools/utilities/dg.py/raiseExceptionWithMessage