Hey
I have a load of check functions, TONS of them. Anyway each one returns a boolean value, all need to return true. Is there a way of implementing some form of try catch that will "catch" an error of false being returned? I dont want to have to include loads of ifs, is there a way round this, ie generating my own exception, which is "returned = false"? Thanks
try
{
checkName();
checkAge();
checkFace();
checkFoot();
checkGas();
checkMate();
}
catch()
{
System.out.println("A false was returned");
}