iXora Custom Software Development Blog

Read | Practice | Advance

B M Shams Nahid

B M Shams Nahid

B M Shams Nahid has not set their biography yet
Node.js Error Handling (The Good, The Bad, The Ugly) In an ideal world, everything works successfully. However in real worlds there always unexpected errors. For example, a connection to the database drops out for whatever reason. So as a best practice, developers should count these unexpected situations and handle them properly. That means we should properly send an error message to the client and also log the unexpected situation. In this article we only cover the exception handling and also, how can we improve the exception-handle functionality. Generate Error Let me demonstrate a real-world scenario, where some exception occurs. Here, we make a get request at URL https://www.some-unknown-url-1234.com/ and expect...
Hits: 2441
Rate this blog entry:
1