This function sets an exception value in an Environment structure.
Environment *env; exception_type major; string exceptionName; somToken params; somSetException(env, major, exceptionName, params);