Plip's Weblog

Phil Winstanley - British .NET chap based in Lancashire. Enjoys tea and tech. Working for Microsoft.

Atlas Exceptions - Wordy but good!

Here's an interesting exception - someone has written an essay :-)

private void CheckCollectionLocked()
{
      if (this._collectionLocked)
      {
            throw new InvalidOperationException("Property items cannot be added to, removed from, or replaced in the collection after the Init event. To dynamically add extender properties, create a new extender and add the new properties to that extender and then add the extender to the page.");
      }
}

I think I prefer this type of exception, descriptive and with a solution. Well done ASP.NET Team.
Posted: Aug 06 2006, 08:35 PM by Plip | with no comments
Filed under:

Comments

No Comments