Part of SGScriptExecutor

1. Add setError function in SGScriptHelper.