From Jason Turner
Watch on YouTube

Summary

This episode provides a fundamental introduction to C++ exceptions. Jason demonstrates basic exception mechanics including throwing and catching various types of exceptions, emphasizing that exceptions should be used for exceptional cases rather than normal control flow. He shows how to create try-catch blocks, explains the importance of catch order for polymorphic exceptions, demonstrates the catch-all syntax (...), and introduces the empty throw statement for rethrowing exceptions. The video also briefly mentions compiler behavior with exceptions and touches on best practices such as catching exceptions by const reference.

Resources

Tags