Ancestry.QueryProcessor.AncestryException.GetMessage C# (CSharp) Method

GetMessage() public static method

public static GetMessage ( ResourceManager resourceManager, int errorCode ) : string
resourceManager System.Resources.ResourceManager
errorCode int
return string
        public static string GetMessage(ResourceManager resourceManager, int errorCode)
        {
            string result = null;
            try
            {
                result = resourceManager.GetString(errorCode.ToString());
            }
            catch
            {
                result = String.Format(ManifestNotFound, errorCode, resourceManager.BaseName);
            }

            if (result == null)
                result = String.Format(MessageNotFound, errorCode, resourceManager.BaseName);
            return result;
        }