Need help on Exception handling block

Getting an error while using Exception handling block:
Please refer below screenshot for details. Can someone please provide suggestions on this.


  • Test case doesn't recognize StepErrorException class. You have to either import it or use full path as you did in previous throw statements.

  • Thank You for your response. Can you please provide me import lines ?

    I am new to Automation :blush:

  • It is the same path what you use in your code. :) Try to add this line to the import section of your script:
    import com.kms.katalon.core.exception.StepErrorException

  • :smile: Thank You ....

Sign In or Register to comment.