add exception in Talend cTry component

Viewed 16

I am using certificate to access the server. if user is using wrong or expired certificate server throw System.InvalidOperationException .in Talend studio I am building it as a route, I am using cTry component which try to invoke original REST endpoint and if request is not successful because of wrong certificate then catch the error/exception (System.InvalidOperationException) and display the customize error message.so my question is how cTry can catch this exception? can some one please guide? I am trying to directly add it in catch but when I run the job it throw error Exception cannot resolves to a type. so how can I add Exception here?

enter image description here

0 Answers
Related