{"record":{"id":"1703907cb90f9018","repo":"peass-ng/PEASS-ng","slug":"syntax-error-at-line-0-column-1","errorCode":null,"errorMessage":"Syntax error at line {0} column {1}\r\n","messagePattern":"Syntax error at line (.+?) column (.+?)\r\n","errorType":"exception","errorClass":"ParseErrorException","httpStatus":null,"severity":"error","filePath":"winPEAS/winPEASexe/winPEAS/3rdParty/YamlSerializer/Parser.cs","lineNumber":165,"sourceCode":"            /// </summary>\n            public int Raw; \n            /// <summary>\n            /// Column in a text.\n            /// </summary>\n            public int Column; \n        }\n        #endregion\n\n        #region Error / Warning\n        /// <summary>\n        /// Reporting syntax error by throwing <see cref=\"ParseErrorException\"/>.\n        /// </summary>\n        /// <param name=\"message\"><see cref=\"string.Format(string,object[])\"/> template for the error message.</param>\n        /// <param name=\"args\"><see cref=\"string.Format(string,object[])\"/> parameters if required</param>\n        /// <returns>Because it throw exception, nothing will be returned in reality.</returns>\n        public bool Error(string message, params object[] args)\n        {\n            throw new ParseErrorException(\n                string.Format(\"Syntax error at line {0} column {1}\\r\\n\", CurrentPosition.Raw, CurrentPosition.Column) +\n                    string.Format(message, args));\n        }\n        /// <summary>\n        /// <para>Give warning if <paramref name=\"condition\"/> is true.</para>\n        /// \n        /// <para>By default, the warning will not be shown / stored to anywhere.\n        /// To show or log the warning, override <see cref=\"StoreWarning\"/>.</para>\n        /// </summary>\n        /// <example>\n        /// <code>\n        ///   return \n        ///       SomeObsoleteReductionRule() &amp;&amp;\n        ///       WarningIf(\n        ///           context != Context.IndeedObsolete,\n        ///           \"Obsolete\");\n        /// </code>\n        /// </example>","sourceCodeStart":147,"sourceCodeEnd":183,"githubUrl":"https://github.com/peass-ng/PEASS-ng/blob/53fb989abc2219826385683a6fee826bd6cd38d6/winPEAS/winPEASexe/winPEAS/3rdParty/YamlSerializer/Parser.cs#L147-L183","documentation":"The central error reporter of the YamlSerializer parser: Error() formats the message with the current token's line and column and throws ParseErrorException. It is invoked from ErrorUnless/ErrorIf helpers at every grammar decision point, so this message means the YAML input violated the parser grammar at the reported position — effectively 'unexpected token at line/column', with the position supplied by the scanner state.","triggerScenarios":"Thrown at winPEAS/winPEASexe/winPEAS/3rdParty/YamlSerializer/Parser.cs:165 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the YAML syntax at the reported line/column (indentation, missing colon/quote, stray characters)","Validate YAML with a linter or YamlSerializer round-trip before shipping","Include the ParseErrorException position in user-facing error output to speed correction"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53fb989abc2219826385683a6fee826bd6cd38d6","analyzedAt":"2026-09-02T04:25:09.259Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T11:17:12.671Z"}