It depends on how you are going to get the
student
parameter - but since your method doesn't actually use it...for the moment, you can just use a
null
:
private void button1_Click(object sender, EventArgs e)
{
Exception ex = searchCity(null, "New York");
if (ex != null)
{
throw(ex);
}
}