Skip to content

Commit 666572d

Browse files
committed
Tweaks to exception details
This clarifies that even NRE, DivideByZeroException etc counts as the exception being thrown.
1 parent 4f575da commit 666572d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

standard/exceptions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Exceptions in C# provide a structured, uniform, and type-safe way of handling bo
66

77
## 21.2 Causes of exceptions
88

9-
Exception can be thrown in two different ways.
9+
Exceptions can be thrown in two different ways.
1010

1111
- A `throw` statement ([§13.10.6](statements.md#13106-the-throw-statement)) throws an exception immediately and unconditionally. Control never reaches the statement immediately following the `throw`.
12-
- 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. See [§21.5](exceptions.md#215-common-exception-classes) for a list of the various exceptions that can occur in this way.
12+
- Certain exceptional conditions that arise during the processing of C# statements and expressions cause an exception to be thrown in certain circumstances when the operation cannot be completed normally. See [§21.5](exceptions.md#215-common-exception-classes) for a list of the various exceptions that can be thrown in this way.
1313
> *Example*: An integer division operation ([§12.10.3](expressions.md#12103-division-operator)) throws a `System.DivideByZeroException` if the denominator is zero. *end example*
1414
1515
## 21.3 The System.Exception class

0 commit comments

Comments
 (0)