I can't seem to find any examples of MongoDB error objects in their documentation or on the internet.
What does an example MongoDB error object look like? I'd like to "handle" the error and/or reformat it for my own purposes, depending on what the error is.
As of MongoDB 2.4.8 with the
mongodb
1.3.23 driver, they look like this: