Reader Level:
ARTICLE

Displaying Exception Information

Posted by John Schofield Articles | Exception Handling C# August 21, 2001
This is a simple utility to display exceptions. Each exception in the chain is added to an ArrayList and displayed in reverse order in a ListView control.
  • 0
  • 0
  • 16554
Download Files:
 

Introduction:

This is a simple utility to display exceptions. Each exception in the chain is added to an ArrayList and displayed in reverse order in a ListView control.

ExceptionInfoJS.gif

Source Code:

TestException.cs

static
int Main(string[] args)
{
try
{
TestException test =
null;
test.TryIt();
}
catch( Exception exc)
{
ExceptionInfoDisplay.DisplayInfo( exc);
}
return( 0);
}

COMMENT USING

Trending up