Write Stack Trace - CSharp System

CSharp examples for System:Exception

Description

Write Stack Trace

Demo Code

/*/*ww  w.j  a va  2s .c o  m*/
   * Copyright: Thomas McGlynn 1997-2007.
   * 
   * The CSharpFITS package is a C# port of Tom McGlynn's
   * nom.tam.fits Java package, initially ported by  Samuel Carliles
   *
   * Copyright: 2007 Virtual Observatory - India.   
   *
   * Use is subject to license terms
   */
using System;

public class Main{
        /*******************************/
        public static void WriteStackTrace(System.Exception throwable, System.IO.TextWriter stream)
        {
            stream.Write(throwable.StackTrace);
            stream.Flush();
        }
}

Related Tutorials