Open 1simjustin opened 2 months ago
There is no way to completely suppress the error message generated by a user interrupt (ctrl + c) through our code as this error message is generated by the JVM, which is not under our control.
Team chose [response.Rejected
]
Reason for disagreement: An exception on invoking ctrl+c is still an exception. It can indeed be suppressed by using Scanner.hasNextLine()
validation (which would circumvent No Line Found
error message).
On pressing ctrl + c (force exit), the program does not exit gracefully and instead calls an exception prior to crashing