| Summary: | NumberFormatException | ||
|---|---|---|---|
| Product: | Gear and Member Management System for library | Reporter: | keithlam5 |
| Component: | Java | Assignee: | keithlam5 |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | keithlam5 |
| Priority: | --- | ||
| Version: | unspecified | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Attachments: | Bug_2 | ||
In the CmdRequest.java, added catch for NumberFormatException |
Created attachment 152 [details] Bug_2 Steps To Reproduce: 1. request 001 E1 17-Jan-2022 five Actual Results: java.lang.NumberFormatException: For input string: "five" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Integer.parseInt(Integer.java:652) at java.base/java.lang.Integer.parseInt(Integer.java:770) at code.CmdRequest.execute(CmdRequest.java:21) at Main.main(Main.java:53) Expected Results: A warning of wrong number format