What is the purpose of `mongoose.connection.on('error', handler)` in a Node.js application?
-
A
To handle errors thrown during schema validation
-
B
To catch post-connection errors such as network drops
-
C
To intercept query errors before they reach the caller
-
D
To log all MongoDB operations