private static Dictionary <string, string> GetKeywords(string tagName, int results) { Dictionary <string, string> keywords = KeywordFromString.GetKeyword("tagname", tagName); KeywordFromNumber.GetKeyword(keywords, "results", results); return(keywords); }
/// <summary> /// Returns the relevant keyword key/values for the exception text /// </summary> /// <param name="argument">The argument that was checked for character count</param> /// <param name="characters">The number of characters found</param> /// <returns>Returns a dictionary with the keywords</returns> private static Dictionary <string, string> GetKeywords(string argument, int characters) { Dictionary <string, string> keywords = KeywordFromNumber.GetKeyword("characters", characters); KeywordFromString.GetKeyword(keywords, "argument", argument); return(keywords); }
private static Dictionary <string, string> GetKeywords(int timeoutValue, int minValue, int maxValue) { Dictionary <string, string> keywords = KeywordFromNumber.GetKeyword("timeoutvalue", timeoutValue); KeywordFromNumber.GetKeyword(keywords, "minvalue", minValue); KeywordFromNumber.GetKeyword(keywords, "maxvalue", maxValue); return(keywords); }
/// <summary> /// Constructor that takes the given tcp port number that was out of range. /// </summary> /// <param name="givenTcpPortNumber">TCP port number</param> public InvalidTcpPortException(int givenTcpPortNumber) : base(KeywordFromNumber.GetKeyword("tcpportnumber", givenTcpPortNumber)) { }
/// <summary> /// Constructor that takes the timeout value that is incorrect and /// the min value and max value as a parameter /// </summary> /// <param name="timeoutValue"></param> /// <param name="minValue"></param> /// <param name="maxValue"></param> public InvalidOcspTimeoutValueException(int timeoutValue, int minValue, int maxValue) : base(KeywordFromNumber.GetKeyword("timeoutvalue", timeoutValue)) { }