Use try catch block
place your code in the Try block
In the catch block - use throw activity
inside throw - use New exception(“Your custom message”)
Use try catch block
place your code in the Try block
In the catch block - use throw activity
inside throw - use New exception(“Your custom message”)