Home Cooker Classes Others Rice CookerGX
Classes  >  ehswitch  >  ErrorMessages
ehswitch class : ErrorMessages getter

Description

Get a list of error messages that occurred in the previous execution of the handler.

Syntax

ehswitchInstance.ErrorMessages

Arguments

None

Return value

ClassDescription
List{string}a list of error messages that occurred in the previous execution of the handler.

Sample code

//anyEhswitch is an instance of ehswitch type.

if(anyEhswitch.IsError)

list{string} errormessages = anyEhswitch.ErrorMessages;

message m;

m.MessageDialog(errormessages);

endif

Notes

Gets a list of error messages of the exception that was not caught by a try statement among the exception that occurred during the previous execution of the handler.

The empty list is returned if all of the exception is caught by the try statement or the handler execution is successfully completed.

Links for reference

None

Copyright © Rice All rights reserved.