Skip to content

Commit e257238

Browse files
author
mikeblome
committed
fixed a few more title and heading casings
1 parent a2b000c commit e257238

17 files changed

Lines changed: 42 additions & 42 deletions

docs/cpp/bad-cast-exception.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: "bad_cast Exception"
2+
title: "bad_cast exception"
33
ms.date: "10/04/2019"
44
f1_keywords: ["bad_cast", "bad_cast_cpp"]
55
helpviewer_keywords: ["exceptions [C++], bad_cast", "bad_cast keyword [C++]"]
66
ms.assetid: 31eae1e7-d8d5-40a0-9fef-64a6a4fc9021
77
---
8-
# bad_cast Exception
8+
# bad_cast exception
99

1010
The **bad_cast** exception is thrown by the **dynamic_cast** operator as the result of a failed cast to a reference type.
1111

docs/cpp/bad-typeid-exception.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: "bad_typeid Exception"
2+
title: "bad_typeid exception"
33
ms.date: "10/04/2019"
44
f1_keywords: ["bad_typeid", "bad_typeid_cpp"]
55
helpviewer_keywords: ["bad_typeid exception", "exceptions [C++], bad_typeid"]
66
ms.assetid: 5963ed58-4ede-4597-957d-f7bbd06299c2
77
---
8-
# bad_typeid Exception
8+
# bad_typeid exception
99

1010
The **bad_typeid** exception is thrown by the [typeid operator](../cpp/typeid-operator.md) when the operand for **typeid** is a NULL pointer.
1111

docs/cpp/cleaning-up-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ int main() {
6060

6161
## See also
6262

63-
[Writing a Termination Handler](../cpp/writing-a-termination-handler.md)<br/>
63+
[Writing a termination handler](../cpp/writing-a-termination-handler.md)<br/>
6464
[Structured Exception Handling (C/C++)](../cpp/structured-exception-handling-c-cpp.md)

docs/cpp/exception-specifications-throw-cpp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Exception Specifications (throw, noexcept) (C++)"
2+
title: "Exception specifications (throw, noexcept) (C++)"
33
ms.date: "01/18/2018"
44
helpviewer_keywords: ["exceptions [C++], exception specifications", "throwing exceptions [C++], throw keyword", "C++ exception handling [C++], throwing exceptions", "throw keyword [C++]", "noexcept keyword [C++]"]
55
ms.assetid: 4d3276df-6f31-4c7f-8cab-b9d2d003a629
66
---
7-
# Exception Specifications (throw, noexcept) (C++)
7+
# Exception specifications (throw, noexcept) (C++)
88

99
Exception specifications are a C++ language feature that indicate the programmer's intent about the exception types that can be propagated by a function. You can specify that a function may or may not exit by an exception by using an *exception specification*. The compiler can use this information to optimize calls to the function, and to terminate the program if an unexpected exception escapes the function.
1010

docs/cpp/exceptions-and-stack-unwinding-in-cpp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: "Exceptions and Stack Unwinding in C++"
3-
ms.date: "11/04/2016"
2+
title: "Exceptions and stack unwinding in C++"
3+
ms.date: "11/19/2019"
44
ms.assetid: a1a57eae-5fc5-4c49-824f-3ce2eb8129ed
55
---
66
# Exceptions and Stack Unwinding in C++
@@ -17,7 +17,7 @@ In the C++ exception mechanism, control moves from the throw statement to the fi
1717

1818
1. If a matching **catch** handler is found, and it catches by value, its formal parameter is initialized by copying the exception object. If it catches by reference, the parameter is initialized to refer to the exception object. After the formal parameter is initialized, the process of unwinding the stack begins. This involves the destruction of all automatic objects that were fully constructed—but not yet destructed—between the beginning of the **try** block that is associated with the **catch** handler and the throw site of the exception. Destruction occurs in reverse order of construction. The **catch** handler is executed and the program resumes execution after the last handler—that is, at the first statement or construct that is not a **catch** handler. Control can only enter a **catch** handler through a thrown exception, never through a **goto** statement or a **case** label in a **switch** statement.
1919

20-
## Stack Unwinding Example
20+
## Stack unwinding example
2121

2222
The following example demonstrates how the stack is unwound when an exception is thrown. Execution on the thread jumps from the throw statement in `C` to the catch statement in `main`, and unwinds each function along the way. Notice the order in which the `Dummy` objects are created and then destroyed as they go out of scope. Also notice that no function completes except `main`, which contains the catch statement. Function `A` never returns from its call to `B()`, and `B` never returns from its call to `C()`. If you uncomment the definition of the `Dummy` pointer and the corresponding delete statement, and then run the program, notice that the pointer is never deleted. This shows what can happen when functions do not provide an exception guarantee. For more information, see How to: Design for Exceptions. If you comment out the catch statement, you can observe what happens when a program terminates because of an unhandled exception.
2323

@@ -100,4 +100,4 @@ int main()
100100
Exiting main.
101101

102102
*/
103-
```
103+
```

docs/cpp/hardware-exceptions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Hardware Exceptions"
2+
title: "Hardware exceptions"
33
ms.date: "11/04/2016"
44
helpviewer_keywords: ["exceptions [C++], hardware", "errors [C++], low-level", "errors [C++], hardware", "hardware exceptions [C++]", "low level errors"]
55
ms.assetid: 06ac6f01-a8cf-4426-bb12-1688315ae1cd
66
---
7-
# Hardware Exceptions
7+
# Hardware exceptions
88

99
Most of the standard exceptions recognized by the operating system are hardware-defined exceptions. Windows recognizes a few low-level software exceptions, but these are usually best handled by the operating system.
1010

@@ -31,5 +31,5 @@ Many of the exceptions listed in the previous table are intended to be handled b
3131

3232
## See also
3333

34-
[Writing an Exception Handler](../cpp/writing-an-exception-handler.md)<br/>
34+
[Writing an exception handler](../cpp/writing-an-exception-handler.md)<br/>
3535
[Structured Exception Handling (C/C++)](../cpp/structured-exception-handling-c-cpp.md)

docs/cpp/mixing-c-structured-and-cpp-exceptions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Mixing C (Structured) and C++ exceptions"
2+
title: "Mixing C (structured) and C++ exceptions"
33
ms.date: "08/14/2018"
44
helpviewer_keywords: ["exceptions [C++], mixed C and C++", "C++ exception handling, mixed-language", "structured exception handling [C++], mixed C and C++", "catch keyword [C++], mixed", "try-catch keyword [C++], mixed-language"]
55
ms.assetid: a149154e-36dd-4d1a-980b-efde2a563a56
66
---
7-
# Mixing C (Structured) and C++ exceptions
7+
# Mixing C (structured) and C++ exceptions
88

99
If you want to write portable code, the use of structured exception handling (SEH) in a C++ program isn't recommended. However, you may sometimes want to compile using [/EHa](../build/reference/eh-exception-handling-model.md) and mix structured exceptions and C++ source code, and need some facility for handling both kinds of exceptions. Because a structured exception handler has no concept of objects or typed exceptions, it can't handle exceptions thrown by C++ code. However, C++ **catch** handlers can handle structured exceptions. C++ exception handling syntax (**try**, **throw**, **catch**) isn't accepted by the C compiler, but structured exception handling syntax (**__try**, **__except**, **__finally**) is supported by the C++ compiler.
1010

docs/cpp/raising-software-exceptions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Raising Software Exceptions"
2+
title: "Raising software exceptions"
33
ms.date: "11/04/2016"
44
helpviewer_keywords: ["run-time errors, treating as exceptions", "exception handling [C++], errors as exceptions", "exceptions [C++], flagging errors as exceptions", "errors [C++], treating as exceptions", "exception handling [C++], detecting errors", "structured exception handling [C++], errors as exceptions", "exceptions [C++], software", "RaiseException function", "software exceptions [C++]", "formats [C++], exception codes"]
55
ms.assetid: be1376c3-c46a-4f52-ad1d-c2362840746a
66
---
7-
# Raising Software Exceptions
7+
# Raising software exceptions
88

99
Some of the most common sources of program errors are not flagged as exceptions by the system. For example, if you attempt to allocate a memory block but there is insufficient memory, the run-time or API function does not raise an exception but returns an error code.
1010

@@ -57,5 +57,5 @@ __except (GetExceptionCode() == STATUS_INSUFFICIENT_MEM ||
5757

5858
## See also
5959

60-
[Writing an Exception Handler](../cpp/writing-an-exception-handler.md)<br/>
61-
[Structured Exception Handling (C/C++)](../cpp/structured-exception-handling-c-cpp.md)
60+
[Writing an exception handler](../cpp/writing-an-exception-handler.md)<br/>
61+
[Structured exception handling (C/C++)](../cpp/structured-exception-handling-c-cpp.md)

docs/cpp/restrictions-on-exception-handlers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Restrictions on Exception Handlers"
2+
title: "Restrictions on exception handlers"
33
ms.date: "11/04/2016"
44
helpviewer_keywords: ["restrictions, exception handlers", "exception handling [C++], exception handlers"]
55
ms.assetid: 31d63524-0e8c-419f-b87c-061f4c0ea470
66
---
7-
# Restrictions on Exception Handlers
7+
# Restrictions on exception handlers
88

99
The principal limitation to using exception handlers in code is that you cannot use a **goto** statement to jump into a **__try** statement block. Instead, you must enter the statement block through normal flow of control. You can jump out of a **__try** statement block and nest exception handlers as you choose.
1010

docs/cpp/restrictions-on-termination-handlers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ A **return** statement inside a **__finally** statement block presents roughly t
1414

1515
## See also
1616

17-
[Writing a Termination Handler](../cpp/writing-a-termination-handler.md)<br/>
17+
[Writing a termination handler](../cpp/writing-a-termination-handler.md)<br/>
1818
[Structured Exception Handling (C/C++)](../cpp/structured-exception-handling-c-cpp.md)

0 commit comments

Comments
 (0)