How is your experience with the OutSystems Community?
13
Views
2
Comments
Handling Exception from extension
Question

How to handle a exception from a dot net extension?

2026-06-20 17-43-43
Sherif El-Habibi
Champion

Hello @Sathish Natarajan,

What you can do within the extension is add an output parameter to the exposed function, for example, IsSuccess based on its success. Then, in Service Studio, check the value of IsSuccess using an If condition. If it returns False, you can raise an exception and handle it according to your application's requirements.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Just like you handle other exceptions. The difference is that an exception from an Extension can't be typed, i.e. it's only possible to handle it with an "All Exceptions" handler. If you want specific situations to be handled, go the route that Sherif wrote, i.e. have the Extension return specific fault codes.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.