Where to set the default error handler

Where would you normally add a custom handler to the code? On the startup Form or on all pages?
Thanks,
Wim

Personally, I rarely use a startup form. I generally have a startup module instead.

There, you could set things like your custom error handler and anything else you need before opening the relevant form for your app.

2 Likes

If what you meant is whether we have to set the custom handler only once or for each form separately, the answer is that you only need to set it once.

2 Likes

Hi Owen,
Thanks for your answer.
Best regards,
Wim

1 Like

OK. That’s exactly what I meant.
Thanks very much.

1 Like

I find that when I’m testing and debugging changes, I want the error handler turned OFF.

That way, I get to see exactly where my code or data went wrong, and some of the context, which may tell me how it got that way.

So, this is an important distinction between my published branch and my development branch.

2 Likes