{"record":{"id":"d192706412fcd478","repo":"BeyondDimension/SteamTools","slug":"filepath","errorCode":null,"errorMessage":"${filePath}","messagePattern":"\\$\\{filePath\\}","errorType":"exception","errorClass":"FileNotFoundException","httpStatus":null,"severity":"error","filePath":"src/BD.WTTS.Client.Tools.Publish/PowerShell/System.Management.Automation/security/SecuritySupport.cs","lineNumber":598,"sourceCode":"        //        else\n        //        {\n        //            throw new System.ComponentModel.Win32Exception(lastError);\n        //        }\n        //    }\n\n        //    return status;\n        //}\n\n        /// <summary>\n        /// Throw if file does not exist.\n        /// </summary>\n        /// <param name=\"filePath\">Path to file.</param>\n        /// <returns>Does not return a value.</returns>\n        internal static void CheckIfFileExists(string filePath)\n        {\n            if (!File.Exists(filePath))\n            {\n                throw new FileNotFoundException(filePath);\n            }\n        }\n\n        /// <summary>\n        /// Check to see if the specified cert is suitable to be\n        /// used as a code signing cert.\n        /// </summary>\n        /// <param name=\"c\">Certificate object.</param>\n        /// <returns>True on success, false otherwise.</returns>\n        internal static bool CertIsGoodForSigning(X509Certificate2 c)\n        {\n            if (!c.HasPrivateKey)\n            {\n                return false;\n            }\n\n            return CertHasOid(c, CertificateFilterInfo.CodeSigningOid);\n        }","sourceCodeStart":580,"sourceCodeEnd":616,"githubUrl":"https://github.com/BeyondDimension/SteamTools/blob/c16ffa08e03b192d23ada290c4969e77f9201f3d/src/BD.WTTS.Client.Tools.Publish/PowerShell/System.Management.Automation/security/SecuritySupport.cs#L580-L616","documentation":"Error \"${filePath}\" thrown in BeyondDimension/SteamTools.","triggerScenarios":"Thrown when a file required by a PowerShell security-support operation (e.g. reading or validating a certificate/script file) does not exist at the supplied path.","commonSituations":"The file path is wrong, the file was moved or deleted, or a relative path resolved against an unexpected working directory. Verify the path exists and is absolute, or correct the working directory before invoking the operation.","solutions":["Verify the file path passed to the signing operation exists on disk.","Fix typos or wrong directory segments in the filePath argument.","If the file is produced by a previous build step, ensure that step completed successfully before signing."],"exampleFix":"Check the reported path, generate or locate the file (e.g. rerun the build that outputs it), then rerun the signing command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c16ffa08e03b192d23ada290c4969e77f9201f3d","analyzedAt":"2026-08-13T11:52:20.410Z","schemaVersion":2},"datasetVersion":"2026-08-13T14:17:21.547Z"}