8000 c9-python-getting-started/7 - Error handling at master · paul5566/c9-python-getting-started · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"7 - Error handling","repo":{"id":211003412,"defaultBranch":"master","name":"c9-python-getting-started","ownerLogin":"paul5566","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2019-09-26T05:00:57.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/14961918?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1620847657.3132439","canEdit":false,"refType":"branch","currentOid":"b09501b9f7dfc42daf9d63b9b26b2006fa1b04f2"},"tree":{"items":[{"name":"README.md","path":"7 - Error handling/README.md","contentType":"file"},{"name":"logic.py","path":"7 - Error handling/logic.py","contentType":"file"},{"name":"runtime.py","path":"7 - Error handling/runtime.py","contentType":"file"},{"name":"syntax.py","path":"7 - Error handling/syntax.py","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eError handling\u003c/h1\u003e\u003ca id=\"user-content-error-handling\" class=\"anchor\" aria-label=\"Permalink: Error handling\" href=\"#error-handling\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eError handling in Python is managed through the use of \u003ca href=\"https://docs.python.org/3.7/reference/compound_stmts.html#except\" rel=\"nofollow\"\u003etry/except/finally\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003ePython has numerous \u003ca href=\"https://docs.python.org/3.7/library/exceptions.html\" rel=\"nofollow\"\u003ebuilt-in exceptions\u003c/a\u003e. When creating \u003ccode\u003eexcept\u003c/code\u003e blocks, they need to be created from most specific to most generic according to the \u003ca href=\"https://docs.python.org/3.7/library/exceptions.html#exception-hierarchy\" rel=\"nofollow\"\u003ehierarchy\u003c/a\u003e.\u003c/p\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Error handling","anchor":"error-handling","htmlText":"Error handling"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fpaul5566%2Fc9-python-getting-started%2Ftree%2Fmaster%2F7%2520-%2520Error%2520handling"}},"totalCount":4,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":"10 - Complex conditon checks","path":"10 - Complex conditon checks","contentType":"directory"},{"name":"11 - Collections","path":"11 - Collections","contentType":"directory"},{"name":"12 - Loops","path":"12 - Loops","contentType":"directory"},{"name":"13 - Functions","path":"13 - Functions","contentType":"directory"},{"name":"14 - Function parameters","path":"14 - Function parameters","contentType":"directory"},{"name":"15 - Packages","path":"15 - Packages","contentType":"directory"},{"name":"16 - Calling APIs","path":"16 - Calling APIs","contentType":"directory"},{"name":"17 - JSON","path":"17 - JSON","contentType":"directory"},{"name":"18 - Decorators","path":"18 - Decorators","contentType":"directory"},{"name":"2 - Print","path":"2 - Print","contentType":"directory"},{"name":"3 - Comments","path":"3 - Comments","contentType":"directory"},{"name":"4 - String variables","path":"4 - String variables","contentType":"directory"},{"name":"5 - Numeric variables","path":"5 - Numeric variables","contentType":"directory"},{"name":"6 - Dates","path":"6 - Dates","contentType":"directory"},{"name":"7 - Error handling","path":"7 - Error handling","contentType":"directory"},{"name":"8 - Handling conditions","path":"8 - Handling conditions","contentType":"directory"},{"name":"9 - Handling multiple conditions","path":"9 - Handling multiple conditions","contentType":"directory"},{"name":"Slides","path":"Slides","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"}],"totalCount":23}},"fileTreeProcessingTime":1.781657,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/paul5566/c9-python-getting-started/branches":{"post":"t4AoO6CS12rGdYZ8IU0nzu6KnQBnXGV-TrUf-BG8VY0bbWHZ5_lCgE2B_n-fNUWKx6UcFledExl0UODEOcnSBQ"},"/paul5566/c9-python-getting-started/branches/fetch_and_merge/master":{"post":"StfxiCuIGgOC2yDy4knMDT3wtRTSFUIkTgfnLsRyPPFLIN3pVBNoqGBL3VaYMScY9PGJ6OkGGkW09PoQTbmwIw"},"/paul5566/c9-python-getting-started/branches/fetch_and_merge/master?discard_changes=true":{"post":"4P9mX-uScN179aEsG60cS9I0aa41FbWWffD0b2nU0nfhCEo-lAkCdpllXIhh1fdeGzVVUg4G7feHA-lR4B9epQ"}}},"title":"c9-python-getting-started/7 - Error handling at master · paul5566/c9-python-getting-started","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0