stack Trace....

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Harry Smith

    #1

    stack Trace....

    Can anyone show me the documentation on how to read the Stack Trace? When I
    get the error it is not possible to identify which line exactly thrown the
    error.
    Thanks,
    Harry


  • Matt Berther

    #2
    Re: stack Trace....

    Hello Harry,

    try
    {
    SomeMethodThatT hrowsAnExceptio n();
    }
    catch (Exception e)
    {
    string foo = e.StackTrace; // contains the info your after...
    }

    --
    Matt Berther
    Musings of an agile development manager and occasional code monkey

    [color=blue]
    > Can anyone show me the documentation on how to read the Stack Trace?
    > When I
    > get the error it is not possible to identify which line exactly thrown
    > the
    > error.
    > Thanks,
    > Harry[/color]


    Comment

    Working...