Python अपवादएरर
KeyErrorKeyError
Dictionary में एक key नहीं मिली।
python
विवरण देखें OSErrorकिसी I/O operation के दौरान system-level error हुई।
Operating system ने error रिपोर्ट की। OSError, FileNotFoundError, PermissionError, और अन्य system errors की base class है। यह file operations, network calls, या ऐसे system calls पर होती है जो OS पूरे नहीं कर सकता।
Specific system error code के लिए errno attribute जाँचें। Specific subclasses (FileNotFoundError, PermissionError) को अलग handle करें। System resources की उपलब्धता verify करें। Human-readable विवरण के लिए strerror attribute जाँचें।
KeyErrorDictionary में एक key नहीं मिली।
StopAsyncIterationIteration पूर्ण होने पर async iterator के __anext__() method द्वारा raise किया जाता है।
ConnectionResetErrorRemote सर्वर द्वारा connection को जबरदस्ती बंद कर दिया गया।
AttributeErrorकिसी ऑब्जेक्ट में अनुरोधित attribute या method नहीं है।
UnicodeDecodeErrorनिर्दिष्ट encoding का उपयोग करके byte sequence को decode नहीं किया जा सका।
TypeError: unhashable typeएक mutable object का उपयोग वहां किया गया जहां hashable (immutable) object आवश्यक है, जैसे dictionary key या set element।