madExcept's exception box

delphi package - automated exception handling

madExcept's exception box

Postby rkskekfkak » Tue Jan 08, 2019 5:16 am

Hello,

I have questions regarding button of exception box.
I want to know why The continue application button exists.
The button makes me think like this "it is OK to continue even though an error has occurred."
So I want to know the continue button is used in which situation, why it is used, wheter it is recommended or not..

Thank you for reading and please answer about my question.
Attachments
errorpic.png
errorpic.png (6.93 KiB) Viewed 393 times
Last edited by rkskekfkak on Wed Jan 09, 2019 1:39 am, edited 1 time in total.
rkskekfkak
 
Posts: 2
Joined: Tue Jan 08, 2019 4:38 am

Re: Continue button of exception box

Postby madshi » Tue Jan 08, 2019 9:30 am

There are different kinds of exceptions. E.g. the user might just have typed a string into an edit field which is supposed to be a number. For such exceptions, you really don't have to close the application. Of course, if an access violation occurs, continuing might make less sense.

If you prefer, you can call "RegisterExceptionHandler(epQuickFiltering, stDontSync)" to check for the exception class of method and then disable or hide the "continue" button for certain exceptions. Or if you're sure that simple exceptions like incorrect edit field data don't occur in your application, and every exception is truly serious, then there's nothing wrong with generally hiding the continue button.
madshi
Site Admin
 
Posts: 10008
Joined: Sun Mar 21, 2004 5:25 pm

Re: Continue button of exception box

Postby rkskekfkak » Wed Jan 09, 2019 12:28 am

madshi wrote:There are different kinds of exceptions. E.g. the user might just have typed a string into an edit field which is supposed to be a number. For such exceptions, you really don't have to close the application. Of course, if an access violation occurs, continuing might make less sense.

If you prefer, you can call "RegisterExceptionHandler(epQuickFiltering, stDontSync)" to check for the exception class of method and then disable or hide the "continue" button for certain exceptions. Or if you're sure that simple exceptions like incorrect edit field data don't occur in your application, and every exception is truly serious, then there's nothing wrong with generally hiding the continue button.


Thanks for the answer
I already know i can hide the Continue button. Nevertheless, the reason i ask this question is to find out if it is reasonable to hide the Continue button.
If i understand your answer correctly, is it OK to use a Continue button like a simple type error and not use it if i am likely to get serious error?
rkskekfkak
 
Posts: 2
Joined: Tue Jan 08, 2019 4:38 am

Re: madExcept's exception box

Postby madshi » Wed Jan 09, 2019 7:49 am

Well, even if there's a crash, continuing might still be possible. It might make sense to at least *try*, in case the user hasn't saved his documents yet. Then he can at least try doing that before restarting the application. In the end it's your choice. You can hide or disable the button if you find that makes sense in your specific situation.
madshi
Site Admin
 
Posts: 10008
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: Google [Bot] and 7 guests

cron