using System;
public class Program
{
public static void Main()
try
Console.Write("Type your password: ");
string passw = Console.ReadLine();
if (passw.Length > 8)
throw new Exception("TooLongPassword");
}
else
Console.WriteLine("Your password is: {0}",passw);
catch (Exception ex)
Console.WriteLine("Error: {0}",ex.Message);