Returning event status
An external method can return a status on execution.
Return Type: ResultSeverity.Success
A severity of Success will be considered a valid return value. Processing will continue unabated. Example:
Result res = Result.Success;
Return Type: ResultSeverity.UserWarning
A severity of UserWarning will prompt the user with the resulting text description of the return value. Once accepted, the processing will continue unabated. Example:
Result res = new Result(0, ResultSeverity.UserWarning, "This is a sample warning");
Return Type: ResultSeverity.UserError
A severity of UserError will prompt the user with the resulting text description of the return value. All processing will stop until the error is resolved. Example:
Result res = new Result(0, ResultSeverity.UserError, "This is a sample error");