In the following code I want to log error when the image is not found.
Can I throw an user defined exception or overwrite exception when the image is not found.
BeginTestCase JobSubmissionException
try
Set the SearchRectangle to (1620,0,1920,123)
WaitFor 4, "Notifications/Nft_JobSucess_Icon"
--throws (name:"name" , reason:"reason")
catch anException
Log "**************************************************************************"
LogError "Job Submission Failed"
Log "**************************************************************************"
end try
EndTestCase JobSubmissionException