Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

How to throws exception from subprocess?

Avatar

Former Community Member

Hi,

I use subprocess in my process and I need throws exception from subprocess to my main process.

Thanks for help.

Jakub

3 Replies

Avatar

Level 10

The only to throw an exception from a sub process is by leveraging the Exception event (from the event view).

You need to throw the exception, by dragging the Exception event and choose Throw into your subprocess. Then you need to add an exception "catcher" in the parent process to catch the Exception.

Jasmin

Avatar

Level 6

Jasmin,

Where are that exception catcher? Does it only works for custom exceptions?

any example of a process with this?

thank you

Avatar

Level 10

If you go on the Event view, you'll see an Exception category. Use the Exception handler from there.

Jasmin