O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

Section 13.1 Introduction

• An exception is an indication of a problem that occurs during a program’s execution.

• Exception handling enables you to create apps that can resolve (or handle) exceptions.

Section 13.2 Example: Divide by Zero without Exception Handling

• An exception is thrown when a method or the CLR detects a problem and is unable to handle it.

• A stack trace includes the name of the exception in a descriptive message that indicates the problem that occurred and the complete method-call stack at the time the exception occurred.

• Division by zero is not allowed in integer arithmetic.

• Division by zero is allowed with floating-point values. Such a calculation results in the value infinity, which is represented by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required