private void CheckCat(Cat testCat) { if (testCat.Age <= 0) { // create a custom exception instance CustomCatException e = new CustomCatException("Your cat is too young."); e.HelpLink = "http://www.libertyassociates.com"; throw e; } }
private void CheckCat(Cat testCat) { if (testCat.Age <= 0) { // create a custom exception instance CustomCatException e = new CustomCatException("Your cat is too young."); e.HelpLink = "http://www.libertyassociates.com"; throw e; } }