Results 1 to 3 of 3

Thread: Error Handling

  1. #1
    Brett Thim Guest

    Error Handling

    When using ASP-DB for handling a recordset, is there any way to display your own error message when the object fails? the object works fine until I use a query that takes too long to process, at which point i get the following error message:

    aspdb error '80040e31'

    Method '~' of object '~' failed

  2. #2
    Frank Guest

    Error Handling (reply)

    Brett,
    Error handling is a weak area in ASP. However, in the ASP DEV conference, MS has announced that the next version of ASP has big improvements in this area.

    Frank

    On 11/16/98 3:53:59 PM, Brett Thim wrote:
    > When using ASP-DB for handling a recordset, is there any way to display
    > your own error message when the object fails? the object works fine until I
    > use a query that takes too long to process, at which point i get the
    > following error message:

    aspdb error '80040e31'

    Method
    > '~' of object '~' failed

  3. #3
    John Guest

    Error Handling (reply)

    Brett,

    Don't forget about the dbSuppressMsg property. It allows you to turn off most messages and do your own reporting. Also, I believe example C7 at:
    http://www.aspdb.com/examples
    shows another technique where it checks the returned record count and if it isn't greater than zero, it throws a custom message up.

    Check these two techniques out and see if they take care of your problems until ASP gets better error handling in the next release!

    John


    On 11/16/98 3:53:59 PM, Brett Thim wrote:
    > When using ASP-DB for handling a recordset, is there any way to display
    > your own error message when the object fails? the object works fine until I
    > use a query that takes too long to process, at which point i get the
    > following error message:

    aspdb error '80040e31'

    Method
    > '~' of object '~' failed

Posting Permissions

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