[Bug 1114] Fixed setArg exception type