|
-
Oct 26th, 2003, 12:08 PM
#1
Thread Starter
Hyperactive Member
In a database application (oracle) do we need write our own exception classess?
Does VB.net provide enough exceptions so that we don't need to write our own exception classess ?
If vb.net doesn't provide exceptions related to the database, how can we write our own exceptions?
thank you
-
Oct 27th, 2003, 08:09 AM
#2
Fanatic Member
.NET has SQLExceptions that handle SQL exceptions thrown by your program, you just have to handle them. Depending on the size and detail of your application, you might want to think about creating your own Exception that inherits from Application Exception so you can customize to the hearts content.
Also, I think MS has an application block for exception handling that you might want to look at on their website.
-
Oct 27th, 2003, 08:10 AM
#3
Fanatic Member
Oh, didn't see the (Oracle) - don't use it so not sure, but you could always create your own anyway, like I said.
-
Oct 27th, 2003, 08:12 AM
#4
Lively Member
In .NET Framework 1.1/VS 2003, there is an OracleClient namespace that contains an OracleException class:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfsystemdataoracleclientoracleexceptionclasstopic.htm
"The exception that is generated when a warning or error is returned by an Oracle database or the .NET Framework Data Provider for Oracle. This class cannot be inherited."
-
Oct 27th, 2003, 12:12 PM
#5
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|