Instead of using third-party applications or using your own code, there is another way to handle errors like Duplicate Key Error, Mongoose bad ObjectId and others. First create a Class like this:class ErrorResponse extends Error {constructor(messa...
Aspiring Software Developer
Watched a lot of movies during the early months of pandemic and one day decided to code and now it's my one of my favourite things to do. Coding boosts my mind, makes me focused and keeps motivated.
Markdown supported · ⌘↵ to post
No responses yet.