///<summary> ///</summary> ///<param name="attributeName"></param> ///<param name="scriptTag"></param> public AttributeNotSpecifiedException(string attributeName, ScriptTag scriptTag) { // validate arguments if (string.IsNullOrEmpty(attributeName)) throw new ArgumentNullException("attributeName"); if (scriptTag == null) throw new ArgumentNullException("scriptTag"); // format the exception message message = string.Format("Could not find required attribute '{0}' on tag of type '{1}'", attributeName, scriptTag.GetType()); }
///<summary> ///</summary> ///<param name="attributeName"></param> ///<param name="scriptTag"></param> public AttributeNullException(string attributeName, ScriptTag scriptTag) { // validate arguments if (string.IsNullOrEmpty(attributeName)) throw new ArgumentNullException("attributeName"); if (scriptTag == null) throw new ArgumentNullException("scriptTag"); // format the exception message message = string.Format("The value of attribute '{0}' can not be null or empty on tag of type '{1}'", attributeName, scriptTag.GetType()); }
///<summary> ///</summary> ///<param name="attributeName"></param> ///<param name="scriptTag"></param> public AttributeOutOfRangeException(string attributeName, ScriptTag scriptTag) { // validate arguments if (string.IsNullOrEmpty(attributeName)) throw new ArgumentNullException("attributeName"); if (scriptTag == null) throw new ArgumentNullException("scriptTag"); // format the exception message message = string.Format("The attribute '{0}' is out of range on tag of type '{1}'", attributeName, scriptTag.GetType()); }