12. Understanding .NET Data Provider Connectivity : .NET Data Provider Classes : IngresException Class : IngresException Class Example
 
Share this page                  
IngresException Class Example
The following is an example implementation of the IngresException class:
static void PrintException(IngresException ex)
{
    Console.Write(ex.GetType().ToString() + ":\n");
    Console.Write("\t" + "Errors = " +
        (ex.Errors !=null?ex.Errors.ToString() :
            "<null>") + "\n");
    Console.Write("\t" + "HelpLink = " +
        (ex.HelpLink !=null?ex.HelpLink.ToString() :
            "<null>") + "\n");
    Console.Write("\t" + "InnerException = " +
                (ex.InnerException!=null?ex.InnerException.ToString():
            "<null>") + "\n");
    Console.Write("\t" + "Source = " +
        (ex.Source !=null?ex.Source.ToString() :
            "<null>") + "\n");
    Console.Write("\t" + "TargetSite = " +
                (ex.TargetSite!=null?ex.TargetSite.ToString():"<null>") + "\n");
    Console.WriteLine("");
}