ExecuteAnonymousResult

The executeanonymous() call returns information about whether or not the compile and run of the code was successful.

An ExecuteAnonymousResult object has the following properties:

NameTypeDescription
columnintIf compiled is False, this field contains the column number of the point where the compile failed.
compileProblemstringIf compiled is False, this field contains a description of the problem that caused the compile to fail.
compiledbooleanIf True, the code was successfully compiled. If False, the column, line, and compileProblem fields are not null.
exceptionMessagestringIf success is False, this field contains the exception message for the failure.
exceptionStackTracestringIf success is False, this field contains the stack trace for the failure.
lineintIf compiled is False, this field contains the line number of the point where the compile failed.
successbooleanIf True, the code was successfully executed. If False, the exceptionMessage and exceptionStackTrace values are not null.