2002-feb24-net / 2002-feb24-net/morgan-project0
Add exception handling to ensure users can't enter non-integers
- 主要言語
- C#
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Add an exception that will stop the system from breaking when a non-integer is entered into the console.
https://github.com/2002-feb24-net/morgan-project0/blob/c13bac5a6d6e3b2856925f7d5539c685c8b9afa0/InstrumentStore.Library/Model/Customer.cs#L125
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
The issue points to line 125 in InstrumentStore.Library/Model/Customer.cs. Start by examining that file to see how user input is currently handled. Look for a method that reads console input and parse it as an integer. Add a try-catch block or use int.TryParse to validate the input and provide a helpful error message. Test by running the console application and entering non-integer values to ensure the system no longer breaks.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 65/100