Apply Try catch inside a Catch block

Using a try-catch inside a catch block can be helpful when handling errors that might occur during the error-logging or recovery process itself. This approach is valid and often used when there are additional operations inside the catch block that could fail. Key Points: Purpose: The inner try-catch ensures that if an error occurs while… Continue reading Apply Try catch inside a Catch block

How to Resolve “Type is not assignable” Error in TypeScript for React Components

Problem: When using TypeScript in a React project, you may encounter an error like: Type ‘{ employeeId: any; weekRange: { start: Date; end: Date; }; }’ is not assignable to type ‘IntrinsicAttributes & { projectTask: string; }’.  Property ’employeeId’ does not exist on type ‘IntrinsicAttributes & { projectTask: string; }’.ts(2322) This typically happens when the… Continue reading How to Resolve “Type is not assignable” Error in TypeScript for React Components

Store Errors in script as a csv file

//Info: JOIN-203 Bugs & errors are common in every script. Usually, we used to Identify these by using try and catch statements.what if there are chances to get ‘n’ number of errors in each part…? its better if we are able identify errors in initial run, save it & continue the next section. Even though… Continue reading Store Errors in script as a csv file