August 2013
Beginner
540 pages
12h 51m
English
After completing this chapter, you will be able to:
Explain what exceptions are.
Recognize the different types of exceptions that can be used in C++/CLI.
Describe how to generate exceptions.
Explain how to handle exceptions.
Create your own exception classes.
Now that you know how to construct classes and value types and use them in programming, this chapter introduces you to exception handling, a powerful way of managing errors within C++ applications.
Exceptions are an error-handling mechanism employed extensively in C++ and several other modern programming languages. Traditionally, error and status information is passed around by using function return values and parameters, as demonstrated in the ...