{"record":{"id":"8d63d5ee5504c81b","repo":"peass-ng/PEASS-ng","slug":"key-not-exist","errorCode":null,"errorMessage":"Key not exist.","messagePattern":"Key not exist\\.","errorType":"exception","errorClass":"ArgumentException","httpStatus":null,"severity":"error","filePath":"winPEAS/winPEASexe/winPEAS/3rdParty/YamlSerializer/RehashableDictionary.cs","lineNumber":543,"sourceCode":"            }\n\n            public override IEnumerator<V> GetEnumerator()\n            {\n                foreach ( var item in Dictionary ) {\n                    CheckValid();\n                    yield return item.Value;\n                }\n            }\n        }\n\n        public V this[K key]\n        {\n            get\n            {\n                V value;\n                if ( TryGetValueCore(key, out value) )\n                    return value;\n                throw new ArgumentException(\"Key not exist.\");\n            }\n            set\n            {\n                AddCore(key, value, false);\n            }\n        }\n\n        #endregion\n\n        #region ICollection<KeyValuePair<K,V>> メンバ\n\n        public void Add(KeyValuePair<K, V> item)\n        {\n            AddCore(item.Key, item.Value, true);\n        }\n\n        public void Clear()\n        {","sourceCodeStart":525,"sourceCodeEnd":561,"githubUrl":"https://github.com/peass-ng/PEASS-ng/blob/53fb989abc2219826385683a6fee826bd6cd38d6/winPEAS/winPEASexe/winPEAS/3rdParty/YamlSerializer/RehashableDictionary.cs#L525-L561","documentation":"The getter of RehashableDictionary's indexer: TryGetValueCore returned false for the requested key, so no entry exists and the getter throws ArgumentException with the sentinel text 'Key not exist.' (a lookup-miss guard, despite the exception type). It fires on any read of this[key] for an absent key.","triggerScenarios":"Thrown at winPEAS/winPEASexe/winPEAS/3rdParty/YamlSerializer/RehashableDictionary.cs:543 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use TryGetValue instead of the indexer when the key may be absent","Verify key presence (ContainsKey) before indexing","Normalize keys (case, whitespace, type equality) so lookups match stored keys"],"exampleFix":null,"handlingStrategy":"validation","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"}