CSharpScriptExecution.LastException

Last Exception fired when a runtime error occurs

Generally this only contains the error message, but there's no call stack information available due to the Reflection or dynamic code invocation

public Exception LastException