Throw Exception Service

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
JefferyD
Posts: 177
Joined: August 31st, 2021, 11:37 am
Contact:

Throw Exception Service

Unread post by JefferyD »

At times I have encountered scenarios where it's easy to determine that something went wrong but handling it requires several layers of error handling logic. Most of those scenarios, I just want to terminate the current method flow and tell the user that something went wrong, but that gets increasingly more complicated and difficult as more layers of methods are needed.

Suggestion
For situations like that, it would be helpful if there was a service that could throw a simulated exception with a custom message. Being able to throw an exception on command would greatly help to prevent error handling gaps from running logic that should be ignored. Additionally, it means that some error handling can defer to the built-in exception handling of EASYProcess which could help reduce the overall complexity and potential failure points of the overall logic as well.

For simple scenarios, this may not be that useful, but I believe it could be invaluable as scenarios get more and more complicated.
word count: 166

Tags:
SteveCap
Posts: 327
Joined: August 26th, 2021, 9:18 am
Contact:

Re: Throw Exception Service

Unread post by SteveCap »

Task #10574 has been created. This post will be updated when the service has been completed.
word count: 16
CathyC
Posts: 469
Joined: November 16th, 2021, 11:15 am
Contact:

Re: Throw Exception Service

Unread post by CathyC »

The previous task was closed to consolidate with a newer task with more info
Task #11294
word count: 16
Post Reply