+ Reply to Thread
Results 1 to 2 of 2

Error Handler within Inner Procedures

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Error Handler within Inner Procedures

    I've been having some trouble figuring out how to handle my errors correctly.

    Here's an example scenario:
    1. Two Procedures
    2. Procedure 1, calls Procedure 2
    3. If an error happens in Procedure 2, I want the Error Handler in Procedure 1 to run
    4. I want to record the line (ERL) of the error in Procedure 2

    If I just leave the error handler in procedure 1, then it flags the error line as being the call to procedure 2. But if I put an error handler in procedure 2, it doesn't also trigger the error handler in procedure 1.
    Last edited by yawnzzzz; 12-09-2011 at 01:21 PM.

  2. #2
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Re: Error Handler within Inner Procedures

    Here's a simplified example of what I came-up with. In the inner procedure, I'm catching the error, but then I resume out to another error handler, which triggers a custom error number that I ignore.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1