Panth Patelhow-is-my-backend.whiteloves.in路19 hours ago10 Common Issues in Node.js to keep in MindIf you have a callback API function, fix it using the Promise constructor. function badImplementation() { return new Promise((resolve, reject) => { someOldLibWithCb((data, err) => { if (err) { reject(err); ...DiscussNode.js
thesvnthesvn.hashnode.dev路Oct 1, 2024Miniblog #1: Callbacks, try/catch and 63/64 rule make an interesting comboI'm thesvn, a newcomer documenting my journey into smart contract security research. These articles share my learning process, insights, and potential misconceptions as I explore this complex field. This vulnerability is a fascinating one that caugh...Discuss路10 likes路37 reads63/64 rule
Angela Hammondangelahamm.hashnode.dev路Aug 29, 2024Safe Optional Chaining (?.) vs. Try-Catch Block in JavaScriptJavaScript is a flexible and dynamic language, but with this flexibility comes the need to handle potential errors, especially when dealing with complex objects or uncertain data structures. Two common approaches to error handling in JavaScript are S...DiscussJavaScript
Mahir barotmahirbarot.hashnode.dev路Aug 22, 2024Top Exception Handling Examples in ProgrammingTable of contents:- Exception handling Example Code for exception handling Custom exceptions with bankApp example Access modifiers in c# and it's scope. Scenario: File Reading We鈥檒l create a program that attempts to read a file. The file may o...DiscussC#
Vashishth Gajjarvashtech.hashnode.dev路Jul 13, 2024Chapter 8: Error HandlingWelcome back to "Mastering JavaScript"! In the previous chapter, we explored JavaScript modules and how they can help you write cleaner, more organized code. 8.1 The Importance of Error Handling Errors are inevitable in programming. They can occur du...DiscussMastering JavaScripterror handling
Abdullah Bin Altafdevopswithabdullah.hashnode.dev路Feb 18, 2024Lecture # 10 - Error Handling with Try-ExceptTry/Except: In Python, the try and except blocks are used for exception handling, allowing you to gracefully handle errors or exceptions that occur during program execution. try Block: The try block lets you test a block of code for errors. except Bl...DiscussDevops
Gilles TOURREAUgilles.tourreau.fr路Dec 4, 2023Detect ongoing .NET exceptionsSometimes it can be useful to detect if an exception is ongoing. For instance, in a Dispose() method, it's valuable to ascertain if an exception is already in progress to avoid throwing a new exception and losing the original one. Problem encountered...Discuss路1 like路43 reads.NET
Ravinder Pandeyravinpandey.hashnode.dev路Sep 27, 2023Mastering Promises, Async/Await, and Try/Catch in ES6 JavaScript 馃殌Hello, JavaScript enthusiast! 馃専 In the ever-evolving world of JavaScript, ES6 (ECMAScript 2015) introduced some powerful features that have forever changed the way we handle asynchronous code. Today, we're going to dive deep into three of these feat...DiscussJavaScript
Chioma Uche-Nwosuitsjustchioma.hashnode.dev路May 18, 2023The Importance of Using try-catch in JavaScript for Graceful Error HandlingOne thing in life is sure: Everything may only sometimes go according to plan. Before riding, every biker wears a helmet. It is imperative, not mandatory, that they wear helmets for their heads' safety. The same is true for Javascript. There is no wa...Discuss路1 like路73 readsJavascripttrycatch
Anushka Singh Bhardwajsinghanushka.hashnode.dev路Apr 24, 2023Exception handling in JavaScriptThere are two main types of errors in JavaScript: Syntax errors: occur when the code syntax is not proper and JavaScript interpreter can't understand it. This error can't be handled with exception handling. Runtime errors: occur while the code is e...Discuss路11 likes路30 readsJavaScript