Public Shared Sub LogException(ByVal ex As Exception) Dim trace As Diagnostics.StackTrace = New Diagnostics.StackTrace(ex, True) LogInfo(String.Format("Error Message :{0} => Error In :{1} => Line Number :{2} => Error Method:{3}", ex.Message, trace.GetFrame(0).GetFileName(), trace.GetFrame(0).GetFileLineNumber(), trace.GetFrame(0).GetMethod().Name)) End Sub
Exception.InnerException
System.Exception
throw;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)