32
Views
5
Comments
Common Exception in Service Module
Discussion

Why there is NO common exception handler in Service Module? Like we have in UI module "Common on Exception".


Regards,

Wasimkhan S


2026-01-03 13-44-38
Erwin van Rijsewijk
Champion

Common exception handlers resists in the Interface TAB. Servicemodules have no Interface TAB.

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Yes, but if we have in Logic tab. it would be helpful to handle the exception globally.

Is there any option that we can implement like common exception in service module?


Regards,

Wasimkhan S

2026-01-03 13-44-38
Erwin van Rijsewijk
Champion


You have to choose another type of module. You can convert a normal module to a servicemodule, but not the other way around.

This course may be helpful : https://learn.outsystems.com/training/journeys/refactoring-apps-414

2021-09-06 15-09-53
Dorine Boudry
 
MVP

the point of the common exception handler, is to be a fallback exception handler for screens / flows, when no earlier exception handler at action or flow level has done the job, so as a last resort to know what to do if no other part of the call chain feels like deciding what to do.

In logic, there is no such concept as 'global', each individual piece of logic (action) has to decide for itself if it wants to handle or pass on the exception.

2019-11-05 11-01-40
Preeti Kumari

First you have to understand the concept of Global Exception handler.


A global Exception is intended to log all events arising from Exceptions not handled during the operation of applications. In cases where there is no specific Exception handler to handle something that occurs at a certain level, it will bubble up through the functionality's call stack until it finds the handler it needs.


And Service Module is basically used to contain generic and reusable action. 


As these actions can be used/called from one or multiple different modules, any exception should be handled either on action level or it will get bubbled up through the functionality's call stack until it finds the handler it needs in main UI module.


Thanks,

Preeti

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