private static Dictionary <string, string> GetKeyword(string implementationNamespaceClass, string implementationAssembly) { Dictionary <string, string> keywords = KeywordFromString.GetKeyword("implementationnamespaceclass", implementationNamespaceClass); KeywordFromString.GetKeyword(keywords, "implementationassembly", implementationAssembly); 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(string tagName, int results) { Dictionary <string, string> keywords = KeywordFromString.GetKeyword("tagname", tagName); KeywordFromNumber.GetKeyword(keywords, "results", results); return(keywords); }
/// <summary> /// Returns the keyword dictionary representing the parameters /// </summary> /// <param name="rootName">The root name</param> /// <param name="rootNamespace">The root namespace</param> /// <returns>Returns the keyword dictionary representing the parameters</returns> public static Dictionary <string, string> GetKeywords(string rootName, string rootNamespace) { Dictionary <string, string> keywords = KeywordFromString.GetKeyword("documentname", rootName); KeywordFromString.GetKeyword(keywords, "documentnamespace", rootNamespace); return(keywords); }
private static Dictionary <string, string> GetKeywords(Type[] before, Type[] current) { StringBuilder beforeStringBuilder = new StringBuilder(); for (int i = 0; i < before.Length; i++) { beforeStringBuilder.Append(before[i].ToString()); if (i + 1 < before.Length) { beforeStringBuilder.Append(", "); } } StringBuilder currentStringBuilder = new StringBuilder(); for (int i = 0; i < current.Length; i++) { currentStringBuilder.Append(current[i].ToString()); if (i + 1 < current.Length) { currentStringBuilder.Append(", "); } } Dictionary <string, string> keywords = KeywordFromString.GetKeyword("before", beforeStringBuilder.ToString()); KeywordFromString.GetKeyword(keywords, "current", currentStringBuilder.ToString()); return(keywords); }
private static Dictionary <string, string> GetKeywords(X509Store store, X509FindType findType, string searchString) { Dictionary <string, string> keywords = KeywordsFromX509Store.GetKeywords(store); KeywordFromString.GetKeyword(keywords, "x509findtype", findType.ToString()); KeywordFromString.GetKeyword(keywords, "searchstring", searchString); return(keywords); }
private static Dictionary <string, string> GetKeywords(IMailServerConfiguration serverConfiguration, Type inBoxImplementationType, object user) { Dictionary <string, string> keywords = KeywordFromType.GetKeyword(inBoxImplementationType); keywords.Add("mailaddress", serverConfiguration.ReplyAddress); KeywordFromString.GetKeyword(keywords, "user", user.ToString()); return(keywords); }
public static Dictionary <string, string> GetKeywords(string rootName, string rootNamespace, XpathDiscriminatorConfigCollection identifierDiscriminators) { Dictionary <string, string> keywords = KeywordFromString.GetKeyword("rootname", rootName); KeywordFromString.GetKeyword(keywords, "rootnamespace", rootNamespace); StringBuilder identifierStringBuilder = new StringBuilder(); foreach (XPathDiscriminatorConfig identifierDiscriminator in identifierDiscriminators) { identifierStringBuilder.Append("("); identifierStringBuilder.Append(identifierDiscriminator.XPathExpression); identifierStringBuilder.Append("="); identifierStringBuilder.Append(identifierDiscriminator.XPathExpectedResult); identifierStringBuilder.Append(")"); } KeywordFromString.GetKeyword(keywords, "identifierdiscriminators", identifierStringBuilder.ToString()); return(keywords); }
/// <summary> /// Constructor that takes the values string that failed the mapping and an /// inner exception as a more specific reason. /// </summary> /// <param name="value"></param> /// <param name="innerException"></param> public KeyTypeMappingFailedException(string value, Exception innerException) : base(KeywordFromString.GetKeyword("value", value), innerException) { }
/// <summary> /// Constructor with keyword /// </summary> /// <param name="endpointKeyTypeCode">endpoint keytype as keyword</param> public UnknownEndpointTypeException(string endpointKeyTypeCode) : base(KeywordFromString.GetKeyword("endpointkeytypecode", endpointKeyTypeCode.ToString())) { }
public RaspMessageFaultUnexpectedRecieverInnerFaultCode(RaspMessageFault.RaspInnerFaultCode innerFaultCode) : base(KeywordFromString.GetKeyword("innerfaultcode", innerFaultCode.ToString())) { }
/// <summary> /// Constructor /// </summary> /// <param name="countryCode">The country code</param> /// <param name="innerException">An exception to display as inner exception</param> public IncorrectCountryCodeException(string countryCode, Exception innerException) : base(new ResourceManager(typeof(dk.gov.oiosi.addressing.ErrorMessages)), KeywordFromString.GetKeyword("countrycode", countryCode), innerException) { }
/// <summary> /// Constructor with keyword /// </summary> /// <param name="endpointKeyTypeCode">endpoint keytype as keyword</param> public UnknownKeyTypeValueException(string endpointKeyTypeCode) : base(KeywordFromString.GetKeyword("KeyType", endpointKeyTypeCode.ToString())) { }
/// <summary> /// NoElementsFoundException constructor /// </summary> /// <param name="tagName"></param> public NoElementsFoundException(string tagName) : base(KeywordFromString.GetKeyword("tagname", tagName)) { }
/// <summary> /// Exception that takes the missing elements name and the inner exception as parameter. /// </summary> /// <param name="missingElement"></param> /// <param name="innerException"></param> public MissingStackElementException(string missingElement, Exception innerException) : base(KeywordFromString.GetKeyword("element", missingElement), innerException) { }
/// <summary> /// Constructor /// </summary> /// <param name="argument">Name of the argument that was null or empty</param> public NullOrEmptyArgumentException(string argument) : base(KeywordFromString.GetKeyword("argument", argument)) { }
/// <summary> /// Constuctor with the lookuptype attempted to load /// </summary> /// <param name="lookupType">attempted load lookuptype</param> public FailedToLoadLookupTypeException(string lookupType) : base(KeywordFromString.GetKeyword("lookuptype", lookupType)) { }
/// <summary> /// Constructor /// </summary> /// <param name="certificateSubject">The certificate subject</param> public SignatureValidationProofIsCompletedException(string certificateSubject) : base(KeywordFromString.GetKeyword("certificatesubject", certificateSubject)) { }
/// <summary> /// UnsupportedChannelTypeException constructor /// </summary> /// <param name="type"></param> public UnsupportedChannelTypeException(Type type) : base(KeywordFromString.GetKeyword("ChannelType", type.ToString())) { }
/// <summary> /// Constructor /// </summary> /// <param name="schematronResult">The schematron result</param> /// <param name="firstErrorMessage">The first error message</param> public SchematronErrorException(XmlDocument schematronResult, string firstErrorMessage) : base(KeywordFromString.GetKeyword("schematronerror", firstErrorMessage)) { _schematronResult = schematronResult; }
/// <summary> /// Constructor /// </summary> /// <param name="DocumentName"></param> public RaspDocumentAllreadyAddedException(string DocumentName) : base(KeywordFromString.GetKeyword("DocumentName", DocumentName)) { }
/// <summary> /// Constructor /// </summary> /// <param name="faultCode">The fault code</param> public OiosiMessageFaultUnexpectedFaultCode(OiosiFaultCode faultCode) : base(KeywordFromString.GetKeyword("faultcode", faultCode.ToString())) { }
/// <summary> /// Constructor /// </summary> /// <param name="ovtNumber">The invalid OVT number</param> /// <param name="innerException">The inner exception from the OVT check</param> public IncorrectOvtNumberException(string ovtNumber, Exception innerException) : base(new ResourceManager(typeof(dk.gov.oiosi.addressing.ErrorMessages)), KeywordFromString.GetKeyword("ovtnumber", ovtNumber), innerException) { }
private static Dictionary <string, string> GetKeywords(ServiceHostBase currentServiceHost) { string currentServiceHostName = currentServiceHost.Description.Name; return(KeywordFromString.GetKeyword("currentservicehostname", currentServiceHostName)); }
/// <summary> /// Constructor /// </summary> /// <param name="type">The assembly qualified name of the type that could not be loaded</param> public CouldNotLoadTypeException(string type) : base(KeywordFromString.GetKeyword("type", type)) { }
/// <summary> /// Constructor /// </summary> /// <param name="faultCode">The fault code</param> public RaspMessageFaultUnexpectedFaultCode(RaspMessageFault.RaspFaultCode faultCode) : base(KeywordFromString.GetKeyword("faultcode", faultCode.ToString())) { }
/// <summary> /// Constuctor that takes the user and the inner exception as parameters. /// The user is the one attempted to use when stopping to use an inbox. The /// inner exception is the reason why it failed. /// </summary> /// <param name="user">The user used</param> /// <param name="innerException">The exception caught</param> public FailedToStopUsingInboxException(object user, Exception innerException) : base(KeywordFromString.GetKeyword("user", user.ToString()), innerException) { }
public IncorrectBusinessIdentifierException(string businessIdentifier) : base(new ResourceManager(typeof(dk.gov.oiosi.addressing.ErrorMessages)), KeywordFromString.GetKeyword("businessidentifier", businessIdentifier)) { }
/// <summary> /// Constructor /// </summary> public UddiWrongGuidFormatException(string Guid, System.Exception innerException) : base(KeywordFromString.GetKeyword("Guid", Guid), innerException) { }