how to catch custom errors raised in SP gracefully?
From: Bob (bobatkpmg_at_yahoo.com)
Date: 07/13/04
- Next message: William \(Bill\) Vaughn: "Re: Back-to-front introduction needed"
- Previous message: William \(Bill\) Vaughn: "Re: Duplicating ado getrows"
- Next in thread: Mike Labosh: "Re: how to catch custom errors raised in SP gracefully?"
- Reply: Mike Labosh: "Re: how to catch custom errors raised in SP gracefully?"
- Reply: William \(Bill\) Vaughn: "Re: how to catch custom errors raised in SP gracefully?"
- Reply: Mary Chipman: "Re: how to catch custom errors raised in SP gracefully?"
- Reply: Bob: "Re: how to catch custom errors raised in SP gracefully?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Jul 2004 12:44:21 -0500
In my stored procedure, I raise an error using RAISERROR. Seems it just
comes out to the .NET code as a SqlException. Is there a way to
differentiate my custom error from the raw SqlExceptions (like table is
missing, FK violation etc), because if I purposely raise an error, I sure
want to handle it differently.
Thanks
Bob
- Next message: William \(Bill\) Vaughn: "Re: Back-to-front introduction needed"
- Previous message: William \(Bill\) Vaughn: "Re: Duplicating ado getrows"
- Next in thread: Mike Labosh: "Re: how to catch custom errors raised in SP gracefully?"
- Reply: Mike Labosh: "Re: how to catch custom errors raised in SP gracefully?"
- Reply: William \(Bill\) Vaughn: "Re: how to catch custom errors raised in SP gracefully?"
- Reply: Mary Chipman: "Re: how to catch custom errors raised in SP gracefully?"
- Reply: Bob: "Re: how to catch custom errors raised in SP gracefully?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|