Re: Error Question
- From: "pvdg42" <pvdg42@xxxxxxxxxxxxxxxxx>
- Date: Sat, 14 Apr 2007 22:30:35 -0500
"MikeJ" <vettes_n_jets@xxxxxxxxx> wrote in message
news:I3eUh.10549$Kd3.2140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Im Building a error handler application
i dont know how to check the type of exception in my
messageformat() Method
also id like to know if a method is in the exception
Errors Collection in SqlException
how can i check the type of exception and if the
exception object has a Method
Tia
MJ
The System.Exception class should provide what you need.
http://msdn2.microsoft.com/en-us/library/system.exception_members.aspx
The getType() method and message property are good starting places.
Exception is the superclass for numerous exception types:
http://msdn2.microsoft.com/en-us/library/x4xzbdb9.aspx
If you catch Exception, you'll get a polymorphic reference to the actual
subtype.
.
- Follow-Ups:
- Re: Error Question
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Error Question
- References:
- Error Question
- From: MikeJ
- Error Question
- Prev by Date: Re: Should I use SQL data type money or decimal given .NET datatype is decimal?
- Next by Date: Re: Modify old style .NET 1.1 object collections to support LINQ query
- Previous by thread: Error Question
- Next by thread: Re: Error Question
- Index(es):
Relevant Pages
|