202
Views
11
Comments
[Reactive]User Exception Handler does not work
Question

Create a new User Exception and throw that exception.

I expect it to be caught by the User Exception Handler, but it gets caught by the All Exceptions Handler.


In the case of Traditional, it works as expected.

2023-04-06 11-24-23
Paulo Zacarias

Hi Yuichi, 

as you describe it, it should be working indeed. 

If you are catching it on the All Exceptions flow, I'm assuming that this module contains the Exception flow handler.

Do you mind sharing the OML?

Best Regards, 

Paulo Z

2019-03-07 05-12-49
Yuichi Igarashi

Hi Paulo  

Thanks for your comment. I shared OML.


I confirmed that I can catch it by putting UserException_XXXXX Handler, but I can't catch it by UserException Handler.

IndependentApp1UI.oml
2023-04-06 11-24-23
Paulo Zacarias

Hi Yuichi, 

I know that in the traditional approach, the exception can be caught on a screen action flow. 

In this reactive approach, apparently, it is not working, so I suggest you to add that user exception handler flow on the module's Exception Flow Handler and see if it works.

CatchUserException.PNG
2019-03-07 05-12-49
Yuichi Igarashi

Unfortunately I couldn't even catch it with the Global Exception Handler.

2020-09-01 10-42-42
Stefano Valente

It seems you cannot reference exception groups, apart from the AllExceptions.

You could change your UserException Handler to your specific created User_Exception_XXXX. this will work.


I think the Exception in Outsystems are a thing that should be high on the list of things to improve. For instance, a User_Exception is something that i want to be able to make public. I also would like to be able to make nested exceptions.


2019-03-07 05-12-49
Yuichi Igarashi

Thank you for your comment.

I hope OutSystems recognizes this as a bug and will fix it.

2011-08-23 22-04-05
Tiago Simões
Staff

Hi Yuichi,

For this to be handled faster I suggest you open a support case here.

Thanks a lot,
Tiago Simões

2019-03-07 05-12-49
Yuichi Igarashi
2021-01-19 14-07-32
Tom Zhao

Hi Yuichi Igarashi

Thank you for bringing up this issue.

I have encountered a similar problem.

When you got a solution, please share it with us in this post.

Kind Regards,

2019-03-07 05-12-49
Yuichi Igarashi

After contacting support, I was told that this was as specified.

I was told to post to Ideas if I wanted to change this spec.

I am disappointed with the results of this support inquiry.

2019-03-07 05-12-49
Yuichi Igarashi

Posted in Ideas.

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