16.1 Causes of exceptions
Visual Studio .NET 2003
Exception can be thrown in two different ways.
throwstatement (Section 8.9.5) throws an exception immediately and unconditionally. Control never reaches the statement immediately following the
- Certain exceptional conditions that arise during the processing of C# statements and expression cause an exception in certain circumstances when the operation cannot be completed normally. For example, an integer division operation (Section 7.7.2) throws a
System.DivideByZeroExceptionif the denominator is zero. See Section 16.4 for a list of the various exceptions that can occur in this way.