Here\'s a standard scenario:
if(string.IsNullOrEmpty(Configuration.AppSettings[\"foobar\"])) throw new SomeStandardException(\"Application not configured
You could try inheriting off the XML Exception, or just using it.