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.