Skip to content

Commit ecca4e2

Browse files
Merge pull request #47833 from wwlpublish/d6c922f85efcba7dcf89e940ebd3cc041f5fa3f9042d9c6684bea89e40fb8b40-live
Modules/M05-guided-project-debug-handle-exceptions-c-sharp-console-application
2 parents 2cd7220 + d5bd098 commit ecca4e2

File tree

8 files changed

+18
-11
lines changed

8 files changed

+18
-11
lines changed

learn-pr/wwl-language/guided-project-debug-handle-exceptions-c-sharp-console-application/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 'Introduction '
44
metadata:
55
title: Introduction
66
description: "Introduction"
7-
ms.date: 02/22/2024
7+
ms.date: 11/07/2024
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/guided-project-debug-handle-exceptions-c-sharp-console-application/2-prepare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 'Prepare '
44
metadata:
55
title: Prepare
66
description: "Prepare"
7-
ms.date: 02/22/2024
7+
ms.date: 11/07/2024
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/guided-project-debug-handle-exceptions-c-sharp-console-application/3-exercise-examine-code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 'Exercise - Review and test a C# console application using sample data '
44
metadata:
55
title: Exercise - Review and test a C# console application using sample data
66
description: "Exercise - Review and test a C# console application using sample data"
7-
ms.date: 02/22/2024
7+
ms.date: 11/07/2024
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/guided-project-debug-handle-exceptions-c-sharp-console-application/4-exercise-exception-handling.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 'Exercise - Throw and catch exceptions in a C# console application '
44
metadata:
55
title: Exercise - Throw and catch exceptions in a C# console application
66
description: "Exercise - Throw and catch exceptions in a C# console application"
7-
ms.date: 02/22/2024
7+
ms.date: 11/07/2024
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/guided-project-debug-handle-exceptions-c-sharp-console-application/5-knowledge-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 'Knowledge check '
44
metadata:
55
title: Knowledge check
66
description: "Knowledge check"
7-
ms.date: 02/22/2024
7+
ms.date: 11/07/2024
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/guided-project-debug-handle-exceptions-c-sharp-console-application/6-summary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 'Summary '
44
metadata:
55
title: Summary
66
description: "Summary"
7-
ms.date: 02/22/2024
7+
ms.date: 11/07/2024
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/guided-project-debug-handle-exceptions-c-sharp-console-application/includes/4-exercise-exception-handling.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,15 @@ In this task, you'll run your application and verify that your updated code work
245245

246246
1. Verify that the messages associated with the two exception types are displayed:
247247

248-
Your transactions report should include the following "Could not make transaction" messages:
248+
Your transactions report should include the following "Could not complete transaction" messages:
249249

250250
```output
251251
Customer is making a $42 purchase
252252
Using 2 twenty dollar bills
253253
Using 0 ten dollar bills
254254
Using 0 five dollar bills
255255
Using 0 one dollar bills
256-
Could not make transaction: InvalidOperationException: Not enough money provided to complete the transaction.
256+
Could not complete transaction: InvalidOperationException: Not enough money provided to complete the transaction.
257257
```
258258

259259
```output
@@ -267,7 +267,7 @@ In this task, you'll run your application and verify that your updated code work
267267
A five
268268
A one
269269
A one
270-
Could not make transaction: InvalidOperationException: The till is unable to make change for the cash provided.
270+
Could not complete transaction: InvalidOperationException: The till is unable to make change for the cash provided.
271271

272272
```
273273

learn-pr/wwl-language/guided-project-debug-handle-exceptions-c-sharp-console-application/index.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,32 @@ uid: learn.wwl.guided-project-debug-handle-exceptions-c-sharp-console-applicatio
33
metadata:
44
title: Guided project - Debug and handle exceptions in a C# console application using Visual Studio Code
55
description: "This module guides you through the code verification process for a C# console application. Hands-on activities provide experience identifying logic issues, debugging the application, and implementing exception handling. Step-by-step instructions are provided."
6-
ms.date: 02/22/2024
6+
ms.date: 11/07/2024
77
author: wwlpublish
88
ms.author: cahowd
99
ms.topic: module
1010
ms.custom:
1111
- N/A
1212
ms.service: dotnet-csharp
1313
ms.devlang: csharp
14+
ai-usage: human-only
1415
title: Guided project - Debug and handle exceptions in a C# console application using Visual Studio Code
1516
summary: This module guides you through a code review and debugging process, as well as the process for adding exception handling to an application.
1617
abstract: |
1718
- Use the Visual Studio Code debugger tools to identify and correct an issue in your code logic.
19+
1820
- Implement exception handling in a C# console application using the `try-catch` pattern.
21+
1922
- Create and throw exceptions with customized properties.
23+
2024
- Catch exceptions at a lower level in the call stack.
2125
prerequisites: |
2226
- An installation of Visual Studio Code that's configured for C# application development.
27+
2328
- Ability to develop C# console applications that implement business logic using iteration statements, selection statements, and custom methods.
29+
2430
- Experience using the Visual Studio Code debugging tools for C#.
31+
2532
- Experience implementing `try-catch` exception handing and throwing exceptions in C# console applications.
2633
iconUrl: /training/achievements/guided-project-debug-handle-exceptions-c-sharp-console-application.svg
2734
levels:
@@ -44,4 +51,4 @@ units:
4451
- learn.wwl.guided-project-debug-handle-exceptions-c-sharp-console-application.knowledge-check
4552
- learn.wwl.guided-project-debug-handle-exceptions-c-sharp-console-application.summary
4653
badge:
47-
uid: learn.wwl.guided-project-debug-handle-exceptions-c-sharp-console-application.badge
54+
uid: learn.wwl.guided-project-debug-handle-exceptions-c-sharp-console-application.badge

0 commit comments

Comments
 (0)