try
{
// and so on....
}
catch(int a)
{
// If an int is thrown this catch block will handle it.
}
catch(bool b) // if you want to catch other types you just add another catch block like this.
{
// If a bool is thrown this catch block will handle it.
}