G
Guest
Hi, friends,
We have a common exception log function in C#:
public void LogException(System.Exception e)
{
.......//write error info to a file
}
which will log error message into a file. Sometiems, SqlException thrown
when using ADO.net will also be passed into this function.
I really want to log more info for those DB errors. However, how do I tell a
passed in exeption is a SqlExeption or other kind of exeptions?
Thanks a lot
We have a common exception log function in C#:
public void LogException(System.Exception e)
{
.......//write error info to a file
}
which will log error message into a file. Sometiems, SqlException thrown
when using ADO.net will also be passed into this function.
I really want to log more info for those DB errors. However, how do I tell a
passed in exeption is a SqlExeption or other kind of exeptions?
Thanks a lot