Occasionally I get an error "Object reference not set to an instance of an object" because I'm using web-based elements and if the internet connection drops out, it causes this error. Until I can figure out a rock solid solution to this problem, is there any way I can make the program output a custom made error output instead of the current one that pops up offering to continue or break the operation with the details of the error?
For example instead of the default error, could I have it execute some other code of my choosing to just restart the program and tell the user that there was an error, and it is starting over or something like that?
I'm more interested in this method currently instead of fixing the root problem right now, but any help would be appreciated, thanks!
For example instead of the default error, could I have it execute some other code of my choosing to just restart the program and tell the user that there was an error, and it is starting over or something like that?
I'm more interested in this method currently instead of fixing the root problem right now, but any help would be appreciated, thanks!