42 Exception Handling in C++ | C++ Programming Tutorial for beginners | cpp | C plus plus

Published: 19 March 2021
on channel: tech fort
120
3

#Exception handling in c ++ :

Compile time errors:

Errors caught during compiling time is called as compile time errors.
spelling mistake, syntax errors, wrong import class etc....


programmer/developer


Run time errors(Logical Error/Exception):
An exception caught during run time and also creates issue like program stops abnormally.


Exception handling in c++ is a process to handle runtime errors.


3 keywords: try, catch, throw




throw: program throws an exception when a program occurs/show. We can use "throw" keyword.


catch: program catches an exception with an exception handler at place in a program where programmer want to handle the problem/issue. we can use catch keyword.


try: try block to identify the code for which a particular exceptions will be activated/generated.


Exception handling:
--------------------


On this page of the site you can watch the video online 42 Exception Handling in C++ | C++ Programming Tutorial for beginners | cpp | C plus plus with a duration of hours minute second in good quality, which was uploaded by the user tech fort 19 March 2021, share the link with friends and acquaintances, this video has already been watched 120 times on youtube and it was liked by 3 viewers. Enjoy your viewing!