Skip to content

Commit f597166

Browse files
author
Oguzhan Katli
committed
exceptions section revisited
1 parent 19688c2 commit f597166

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/6-Exceptions/exception_usage.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ namespace exceptions {
9393
{
9494
throw CustomException(__LINE__, __FILE__);
9595
}
96-
catch (const CustomException& ex)
96+
catch (const std::exception& ex)
9797
{
9898
std::cout << ex.what() << std::endl;
9999
}
@@ -156,7 +156,7 @@ namespace exceptions {
156156
delete val;
157157
}
158158

159-
void usage()
159+
void unwinding_usage()
160160
{
161161
try
162162
{
@@ -183,5 +183,5 @@ ELEMENT_CODE(ExceptionUsage) {
183183

184184
ELEMENT_CODE(ExceptionUnwinding) {
185185
using namespace exceptions;
186-
unwinding::usage();
186+
unwinding::unwinding_usage();
187187
}

0 commit comments

Comments
 (0)