Express catches the exception in the outer layer and processes the exception information and outputs it to the response.
The web framework definitely does not trust user code. All calls to user code have try catch, so as to ensure the stability of the service. In a single-process single-thread environment like nodejs, an exception process will hang.
Express catches the exception in the outer layer and processes the exception information and outputs it to the response.
The web framework definitely does not trust user code. All calls to user code have try catch, so as to ensure the stability of the service.
In a single-process single-thread environment like nodejs, an exception process will hang.