FormatException.Message
namespace nsExceptions
{
using System;
public class FormExce
{
static public void Main ()
{
const double pi = 3.14159;
try
{
Console.WriteLine ("pi = {0,0:f5", pi);
}
catch (FormatException e)
{
Console.WriteLine (e.Message);
}
}
}
}
Related examples in the same category