Why there is NO common exception handler in Service Module? Like we have in UI module "Common on Exception".
Regards,
Wasimkhan S
Common exception handlers resists in the Interface TAB. Servicemodules have no Interface TAB.
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?
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
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.
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