Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2442 Discussions

flow_graph error/exception handling in nodes ?

nyue
Novice
143 Views

In the event of errors and exception in a node I am developing, what is the correct way to signify to the flow_graph runtime

  1. Errors
  2. Exceptions

Are there best practices for the above ? Any example code I can view ?

 

Kind regards

 

0 Kudos
1 Solution
SeshaP_Intel
Moderator
114 Views

Hi,


Thank you for posting in Intel Communities.

You can use exception handling in the flow graph to catch exceptions in the node.

You can modify the implementation of node, so that it catches the exception within its own body.

Please refer to the OneTBB Pro Textbook, page no:489 for more details.


Thanks and Regards,

Pendyala Sesha Srinivas



View solution in original post

3 Replies
SeshaP_Intel
Moderator
115 Views

Hi,


Thank you for posting in Intel Communities.

You can use exception handling in the flow graph to catch exceptions in the node.

You can modify the implementation of node, so that it catches the exception within its own body.

Please refer to the OneTBB Pro Textbook, page no:489 for more details.


Thanks and Regards,

Pendyala Sesha Srinivas



SeshaP_Intel
Moderator
84 Views

Hi,


Has the information provided above helped? If yes, could you please confirm whether we can close this thread from our end?


Thanks and Regards,

Pendyala Sesha Srinivas


SeshaP_Intel
Moderator
62 Views

Hi,


Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks and Regards,

Pendyala Sesha Srinivas


Reply