Hi there,
Lets say I have a try catch block with the following handlers...
catch (UniqueTitleConstraintException exc)
{
SetLabel(string.Format("DUPLICATE TITLE: '{0}'. FILENAME: {1}", exc.MediaItemEntity.Title,
exc.MediaItemEntity.Name));
}
catch (PageNameAlreadyInUseException)
{
SetLabel("PAGE NAME ALREADY IN USE");
}
catch (FormatException)
{
SetLabel("PLEASE ENTER A VALID ORDINAL");
}
And then I have another try catch block else where which handles the first two of these exceptions in exactly the same way. Is there a way of taking a set of catch blocks and applying them to multiple try catch blocks so that I don't need to dupl ...
Go to the complete details ...