Error handling is a critical aspect of design, and it crosses from the lowest levels to the end users. The key to success is being aware of all these interlocking aspects, considering them explicitly, and forming a solution that addresses each point. Swallow the exception if you know how to handle it and can fully recover.
Table of contents
Status Codes vs. ExceptionsQuick ExamplePython ExceptionsRaising ExceptionsCatching ExceptionsFinally ClauseContext ManagersLoggingSentryDealing With Transient FailureHelpful DecoratorsConclusionLearn Python1 Comment
Sort: