We can take this further: the following code removes two routines from the backtrace.
The preceding part of the error message shows the context where the exception happened, in the form of a stack backtrace.
In general it contains a stack backtrace listing source lines; however, it will not display lines read from standard input.