Difference between Throw, Rethrow and Try catch Block

Hi ,

Can any one tell the difference between

Throw, Rethrow and Try catch Block

Thanks in advance.


Hope the following helps you.

Throw : we can intentionally raise any exception at any place using this activity.

Rethrow: we can intentionally raise an exception which is caught by try-catch activity. It’s used in the catch block.


1 Like


Try - holds the activity that could throw exception.

Catch - Specifies the exception type and, optionally, holds an activity that informs the user about the found exception.

Throw - You use the Throw when you want to send to a particular exception. It can be used any where in our process.

Rethrow - Throws a previously thrown exception from within a TryCatch activity. The error is rethrown retaining the original source of the exception. Rethrow can only be used within a Catch block of a TryCatch activity.

1 Like

Thanks a lot Laskhman for ur reply.
Appreciate for ur clear answer.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.