Join me in these bi-weekly series to explore the topic of error reporting in C++.
The focus of this course is the design of functions that normally return a value, but an error may occur so, what should they return instead?
In this video we will be looking at reporting errors using error codes.
Error codes are typically integers with values that represent different errors.
They are readily available, very flexible and can be even used to communicate with different processes, languages and systems.
However, whatever "content" your function returns needs to be passed as a parameter. This is not very neat and you cannot handle the payload as a constant.
The course is also available FOR FREE on Udemy.
It includes coding exercises so you can practice what you have learned.
Check it out and please consider leaving a review if you find it helpful: www.udemy.com/...
Негізгі бет Error reporting in C++ - Error codes (7/13)
Пікірлер