Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
user19
Contributor
Contributor

catch exception in cTry component

Hello,

I am using certificate to access the server. if user is using wrong or expired certificate it throw System.InvalidOperationException . in open studio building it as a route, I am using cTry component which try to invoke target 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. 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?

0695b00000UyoxXAAR.png 

Labels (4)
1 Reply
jeoste
Creator
Creator

Hello,

I'm not sure but I'm catching error with cOnException, maybe add this component after cTry to get those java errors

jeoste_0-1707132129491.png