Loading repovive.com/roadmaps/cpp
Roadmaps
C++
Exception Handling
Problemset
Discussion
AI Helper
Getting Started
0/48
Variables & Data Types
0/57
Input & Output
0/48
Operators & Expressions
0/52
Control Flow
0/53
Loops
0/58
Arrays
0/50
Strings
0/46
Functions
0/50
Pointers & References
0/52
Structs
0/44
Vectors & STL Basics
0/48
Maps & Sets
0/52
Pairs & Tuples
0/53
STL Algorithms
0/50
Classes & Objects
0/54
Inheritance & Polymorphism
0/56
File I/O
0/49
Exception Handling
0/54
1
Intro
2
What Are Exceptions?
3
Why Exceptions?
4
The try Block
5
The throw Statement
6
Quiz: Exception handling
7
The catch Block
8
Basic try-catch Example
9
Quiz: Exception handling
10
Quiz: try-catch Basics
11
Catching by Value vs Reference
12
Multiple catch Blocks
13
Quiz: Variable alias
14
Catch-All Handler (catch(...))
15
Standard Exception Classes
16
Quiz: Error signaling
17
std::exception Base Class
18
std::runtime_error and std::logic_error
19
Quiz: Error signaling
20
Quiz: Exception Categories
21
std::out_of_range, std::invalid_argument
22
Creating Custom Exceptions
23
Quiz: Error signaling
24
Inheriting from std::exception
25
The what Method
26
Quiz: Error signaling
27
Rethrowing Exceptions
28
Exception Propagation
29
Quiz: Error signaling
30
Quiz: Stack Unwinding
31
noexcept Specifier
32
When to Use Exceptions
33
Quiz: Error signaling
34
Exceptions vs Error Codes
35
Quiz: When to Use Exceptions
36
Exception Safety Basics
37
RAII and Exceptions
38
Quiz: Error signaling
39
Quiz: Exception Safety
40
Practice Problems
41
Section 18 Recap
42
Problem - Safe Division
43
Safe Division - The Idea
44
Safe Division - Algorithm
45
Quiz: Integer division
46
Safe Division - Implementation
47
Lessons from Safe Division
48
Problem - Input Validator
49
Input Validator - The Idea
50
Input Validator - Algorithm
51
Quiz: Error signaling
52
Input Validator - Implementation
53
Lessons from Input Validator
54
Section Recap
Dynamic Memory
0/50
19.1
Intro
4 minutes
100%
Tasks
Read Unit