Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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 II
Creator II

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