Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c2533f

Browse files
committed
Added sentence "All exceptions must have an executable block."; from
Dan Wolfe <[email protected]>.
1 parent b68a125 commit 4c2533f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/ref/ref7.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ \section{The \keyword{try} statement\label{try}}
218218

219219
When a matching except clause is found, the exception's parameter is
220220
assigned to the target specified in that except clause, if present,
221-
and the except clause's suite is executed. When the end of this suite
221+
and the except clause's suite is executed. All except clauses must
222+
have an executable block. When the end of this block
222223
is reached, execution continues normally after the entire try
223224
statement. (This means that if two nested handlers exist for the same
224225
exception, and the exception occurs in the try clause of the inner

0 commit comments

Comments
 (0)