You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, we need to check some data is exist in the collection or not. if it does not exist it should throw an error and can be properly handled try-catch but the error is displayed only in the console doesn't go to catch block
Only console. error is done not an exception is thrown
Now only one error will be displayed in the console
This is console.error which is displayed for an invalid query made
Now proceed to the source tab and view app.js file
In app.js file you could see there is two query doc search based on id one is valid and another one is invalid inside a try-catch block. For an invalid search, the only console.error is thrown not an error exception which is not handled by the catch block.
However, the function returns undefined as return value where the user can validate with it but it will be good if error exception is thrown same like RDBMS database
The text was updated successfully, but these errors were encountered:
This is not handled properly.
For example, we need to check some data is exist in the collection or not. if it does not exist it should throw an error and can be properly handled try-catch but the error is displayed only in the console doesn't go to catch block
Only console. error is done not an exception is thrown
Steps to Reproduce
In app.js file you could see there is two query doc search based on id one is valid and another one is invalid inside a try-catch block. For an invalid search, the only console.error is thrown not an error exception which is not handled by the catch block.
However, the function returns undefined as return value where the user can validate with it but it will be good if error exception is thrown same like RDBMS database
The text was updated successfully, but these errors were encountered: