| .. | ||
| soulutions | ||
| CMakeLists.txt | ||
| main.cpp | ||
| README.md | ||
Linux compilation
> mkdir build
> cd build
> cmake -DCMAKE_BUILD_TYPE=Debug ..
> make
Exercise 1
- Create an exception class
Exceptionwhich inherits fromstd::exceptionand two classesParserExceptionandReaderExceptionwhich inherit form classException`. - Rewrite a code to
ParserExceptionin the methodparseandReaderExceptionin the methodread. - Try to catch errors in
mainand print them - Rewrite a code once again and return
nulloptwhen an error occurs instead of throwing an exception