Hello! Can anyone help me? I am in a class, and quite confused about what to do with this procedure. Does anyone have any advice?
write a sub procedure that can be used as a generic error-handling routine. The procedure should take two arguments, a string describing where the handler is being called and an exception object. The procedure would normally be called in the Catch section of a Try block, so that you can code all of your procedures or functions with the same structure, a single Try block around all of your code. The procedure should append the exception's message text to the handler description and reraise the exception with the newly concatenated message. Essentially, this approach would show a stack dump of called procedures/methods for a failed piece of code, like many Microsoft provided error messages, for example, "[routinex][routiney][ado.open]you made an error".
Any help or explanation is greatly appreciated! Thanks